API Docs Preview: x.slice is not a function
See original GitHub issueHello,
When I’d like to Preview Documentation, I show this error:
Something went wrong...
x.slice is not a function
Stack trace
TypeError: x.slice is not a function
at Object.matchGrammar (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:55:26236)
at Object.tokenize (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:55:26564)
at Object.highlight (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:55:25251)
at at (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:108:31856)
at t.render (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:114:76644)
at ji (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:83:62905)
at Ai (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:83:62700)
at Ri (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:83:66534)
at Ha (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:83:90551)
at Va (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js:83:90935)
ReDoc Version: 2.0.0-rc.4 Commit: 0dab8af
There’s no Issues in the editor.
Thanks, Peter
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
how to solve ERROR TypeError: labels.slice is not a function?
But your labels is a Set object, which can't use slice . One way to fix this, would be to use an array...
Read more >redoc-cli render TypeError: str.slice is not a function · Issue #870
The issue was with x-www-form-urlencoded . It was not encoded properly. Now it looks like bellow: image. Will land in the upcoming release....
Read more >String.prototype.slice() - JavaScript - MDN Web Docs
slice () extracts the text from one string and returns a new string. Changes to the text in one string do not affect...
Read more >JavaScript Array slice() Method - W3Schools
The slice() method returns selected elements in an array, as a new array. The slice() method selects from a given start, up to...
Read more >Slice | API Reference | ArcGIS Maps SDK for JavaScript 4.25
The unique ID assigned to the widget when the widget is created. If not set by the developer, it will default to the...
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 FreeTop 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
Top GitHub Comments
I had the same problem. Reproduction and workaround is easy:
This:
causes the error, but this
works.
Redoc “2.0.0-rc.22”
Just following up on this - @bpeterm can you supply a reproducer for this?