question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when including swagger ui in react app

See original GitHub issue

Hi, 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Awemcommented, Feb 28, 2018

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 but remarkable hasn’t been updated in a while. Any alternatives to react-remarkable?

0reactions
lock[bot]commented, Jul 2, 2019

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found