You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone! I'm new to Redoc, and I'm trying to use the HTML tag to render my Open API spec, I'm unable to do so. I know the spec is correct, cause I took it directly from the sample swagger page at https://swagger.io/docs/specification/basic-structure/
And upon opening it Chrome I get the following error:
Something went wrong...
i.lstatSync is not a function
Stack trace
Error: i.lstatSync is not a function
at t.BaseResolver.<anonymous> (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:2:31063)
at Generator.next (<anonymous>)
at https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:2:29037
at new Promise (<anonymous>)
at r (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:2:28782)
at t.BaseResolver.loadExternalRef (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:2:30672)
at t.BaseResolver.<anonymous> (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:2:31576)
at Generator.next (<anonymous>)
at https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:2:29037
at new Promise (<anonymous>)
ReDoc Version: 2.1.3
Commit: b2d8e0f
Expected behavior
The document should be rendered as per the spec in the YAML file.
Been stuck on this for a day and I'm unable to find any resolution, so any help would be very much appreciated!
Edit - The end goal for me is to be able to host this on kubernetes, and I wanted to take the easiest route possible, which for me is serving this HTML over an nginx server. If there are other alternatives, do let me know about those as well!
The text was updated successfully, but these errors were encountered:
Hey everyone! I'm new to Redoc, and I'm trying to use the HTML tag to render my Open API spec, I'm unable to do so. I know the spec is correct, cause I took it directly from the sample swagger page at https://swagger.io/docs/specification/basic-structure/
Describe the bug
My HTML page is as follows:
And upon opening it Chrome I get the following error:
Expected behavior
The document should be rendered as per the spec in the YAML file.
Been stuck on this for a day and I'm unable to find any resolution, so any help would be very much appreciated!
Edit - The end goal for me is to be able to host this on kubernetes, and I wanted to take the easiest route possible, which for me is serving this HTML over an nginx server. If there are other alternatives, do let me know about those as well!
The text was updated successfully, but these errors were encountered: