Error when including swagger ui in react app
See original GitHub issueHi, I followed suggestions here https://github.com/swagger-api/swagger-ui/issues/3000 to include swagger ui in a react app. But I got this error:
bundle.js:50 Uncaught TypeError: Cannot set property 'Autolinker' of undefined
I didn’t see swagger ui use Autolinker directly, so it should be used by a dependency library. Any idea on this error?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
swagger-ui-react broken with react-scripts 5.0.0 #7893 - GitHub
I'm hitting errors here when I try to use Swagger UI from a Vite.js application. safe-buffer works on Node.js, but doesn't work on...
Read more >swagger-ui-react css file compiled with unknown error
I had a similar issue loading the swagger-ui.css file on my browser. A simple solution to solve this is use the link: ...
Read more >How to handle errors in SwaggerUI - LinkedIn
This plugin is solely responsible for error handling logic in SwaggerUI. Accepts a list of component names that should be protected by error...
Read more >swagger-ui-react - npm Package Health Analysis - Snyk
An OpenAPI document respresented as a JavaScript object, JSON string, or YAML string for Swagger UI to display. ⚠️ Don't use this in...
Read more >Plug points - Swagger Documentation
SwaggerUI comes with a safe-render plugin that handles error handling allows plugging into error handling system and modify it. The plugin accepts a...
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
I also ran into this. This is actually an Autolinker issue regarding Webpack: https://github.com/gregjacobs/Autolinker.js/issues/86 It might be fixed in a more recent version of
autolinker
butremarkable
hasn’t been updated in a while. Any alternatives toreact-remarkable
?Locking due to inactivity.
This is done to avoid resurrecting old issues and bumping long threads with new, possibly unrelated content.
If you think you’re experiencing something similar to what you’ve found here: please open a new issue, follow the template, and reference this issue in your report.
Thanks!