RangeError: Maximum call stack size exceeded
See original GitHub issueDescribe the bug RangeError: Maximum call stack size exceeded when a recursion is present in the spec
To Reproduce Steps to reproduce the behavior:
- Given a yml file that references itself
- run
redocly preview-docs
- the error
at tn (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:8:647081)
at new Nc (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:39:68016)
at https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:39:65200
at Array.map (<anonymous>)
at Pc (https://cdn.redoc.ly/r```
**Expected behavior**
The docs are rendered properly
**Logs**
```RangeError: Maximum call stack size exceeded
at tn (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:8:647081)
at new Nc (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:39:68016)
at https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:39:65200
at Array.map (<anonymous>)
at Pc (https://cdn.redoc.ly/r```
**OpenAPI definition**
"openapi": "3.0.0",
**Redocly Version(s)**
1.0.0-beta.105
**`Node.js` Version(s)**
18.2.0
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >JavaScript Error: Maximum Call Stack Size Exceeded
If you see the “Maximum Call Stack Size Exceeded” error, there's likely a problem with a recursive function within your JavaScript code.
Read more >Uncaught RangeError: Maximum call stack size exceeded
This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript...
Read more >RangeError: Maximum call stack size exceeded
The most common source for this error is infinite recursion. You must have a recursive function in your code whose base case is...
Read more >RangeError: Maximum call stack size exceeded in JavaScript
The "RangeError: Maximum call stack size exceeded" error occurs when a function is called so many times that the invocations exceed the call...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tatomyr I didnt know if we had to update the cli. we tried it out and everything is working. thanks
Hi @felipeloha,
Redocly CLI uses the latest version of Redoc. The reason it doesn’t get fixed for you might be some caching. Could you check this in the incognito mode?