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

build: Maximum call stack size exceeded since v2.0.0-rc.74 #2114

Closed
m-mohr opened this issue Aug 2, 2022 · 8 comments · Fixed by #2116
Closed

build: Maximum call stack size exceeded since v2.0.0-rc.74 #2114

m-mohr opened this issue Aug 2, 2022 · 8 comments · Fixed by #2116
Assignees

Comments

@m-mohr
Copy link
Contributor

m-mohr commented Aug 2, 2022

Describe the bug
When I run redoc-cli build openapi.yaml -o redoc.html --title "openEO API" --cdn --options.expandResponses "200,201,202,203,204" --options.pathInMiddlePanel true

I get an error:

Prerendering docs
RangeError: Maximum call stack size exceeded
    at Ln.init (C:\Dev\openeo-api\node_modules\redoc-cli\node_modules\redoc\bundles\redoc.lib.js:41:65120)
    at new Ln (C:\Dev\openeo-api\node_modules\redoc-cli\node_modules\redoc\bundles\redoc.lib.js:41:63105)
    at C:\Dev\openeo-api\node_modules\redoc-cli\node_modules\redoc\bundles\redoc.lib.js:41:66177
    at Array.map (<anonymous>)
    at Ln.initOneOf (C:\Dev\openeo-api\node_modules\redoc-cli\node_modules\redoc\bundles\redoc.lib.js:41:65954)
    at Ln.init (C:\Dev\openeo-api\node_modules\redoc-cli\node_modules\redoc\bundles\redoc.lib.js:41:64512)
    at new Ln (C:\Dev\openeo-api\node_modules\redoc-cli\node_modules\redoc\bundles\redoc.lib.js:41:63105)
    at new Wn (C:\Dev\openeo-api\node_modules\redoc-cli\node_modules\redoc\bundles\redoc.lib.js:41:71240)
    at C:\Dev\openeo-api\node_modules\redoc-cli\node_modules\redoc\bundles\redoc.lib.js:41:68582
    at Array.map (<anonymous>)

Expected behavior

Build runs flawlessly.

Minimal reproducible OpenAPI snippet(if possible)
Not sure what causes this, so here's the link to the OpenAPI file: https://github.com/Open-EO/openeo-api/blob/draft/openapi.yaml

Additional context
Seems to happen since v2.0.0-rc.74 - PR #2072 seems suspicious.

@m-mohr m-mohr changed the title build: Maximum call stack size exceeded build: Maximum call stack size exceeded since v2.0.0-rc.74 Aug 2, 2022
@AlexVarchuk AlexVarchuk self-assigned this Aug 2, 2022
@AlexVarchuk AlexVarchuk mentioned this issue Aug 3, 2022
3 tasks
@felipeloha
Copy link

@AlexVarchuk do you think this is related Redocly/redocly-cli#799?

@felipeloha
Copy link

@AlexVarchuk how can I know in which version this is solved?

@AlexVarchuk
Copy link
Collaborator

@felipeloha We'll make the next release today.

@felipeloha
Copy link

@AlexVarchuk does this fix apply for https://www.npmjs.com/package/@redocly/cli ?
sorry for the many questions

@AlexVarchuk
Copy link
Collaborator

should fix

@felipeloha
Copy link

@AlexVarchuk this issues wasn't released yesterday, right?
I checked v2.0.0-rc.74...v2.0.0-rc.75

please let me know if I misunderstood something

@AlexVarchuk
Copy link
Collaborator

Hi @felipeloha, released here.
I tested your result. It works ok.

npx @redocly/cli@latest preview-docs ./sample.json
Screen.Recording.2022-08-11.at.15.52.14.mov

@felipeloha
Copy link

thanks

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

Successfully merging a pull request may close this issue.

3 participants