Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: e.name.localCompare with 2.0.0-rc.25 #1218

Closed
donbowman opened this issue Mar 29, 2020 · 2 comments
Closed

TypeError: e.name.localCompare with 2.0.0-rc.25 #1218

donbowman opened this issue Mar 29, 2020 · 2 comments

Comments

@donbowman
Copy link

I think yesterday a new version was pushed to CDN, its broke on rendering with the below stack trace (and the below input).

TypeError: e.name.localCompare is not a function
    at https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:130:56091
    at Array.sort (<anonymous>)
    at e.initDiscriminator (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:130:56004)
    at e.init (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:130:54621)
    at new e (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:130:50979)
    at e.init (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:130:54084)
    at new e (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:130:50979)
    at new e (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:130:58730)
    at https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:130:60086
    at Array.map (<anonymous>)

ReDoc Version: 2.0.0-rc.25
Commit: 89054da

with input

<!DOCTYPE html>
<html>
  <head>
    <title>Agilicus API</title>
    <!-- needed for adaptive design -->
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">

    <style>
      body {
        margin: 0;
        padding: 0;
      }
    </style>
  </head>
  <body>
    <redoc spec-url='https://storage.googleapis.com/agilicus/api/agilicus-openapi.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
  </body>
</html>

@RomanHotsiy
Copy link
Member

RomanHotsiy commented Mar 29, 2020

Pinpoint to 2.0.0-rc.25 or to @latest instead of @next for now while new version is coming.
Thanks for the report.

@RomanHotsiy
Copy link
Member

Should be fixed in rc.26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants