New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self is not defined #3291
Comments
I'm able to reproduce this - thanks for reporting! |
The problem here is that we're importing the bundle and Standalone preset in the main file for the module. This is great for people using We can't remove the references, because that would be a breaking change - we'd have to bump the major version for It may be possible to detect at runtime what context we're running in. I'm going to try out some solutions and try to get this fixed by Friday. To all - comments and PRs around this are welcome. |
\swagger-api-doc\swagger-ui-bundle.js:73 ReferenceError: self is not defined We are facing this issue with swagger api. |
+1 |
This should be fixed next time the projects are released - I wrapped the require calls for the SwaggerUIBundle and SwaggerUIStandalonePreset in a try/catch in #3336, which should keep the whole module from exploding when that happens in a Node context. I'll close this issue once the projects are released with a fix - once that's done, I invite everyone that has commented to update whether the issue is resolved from your end. edited: s/if/whether |
Releasing now, so this fix should be live shortly. |
Hi |
@chaitralisk, are you sure you're loading |
Yes, I am loading |
@chaitralisk, can you please open a new ticket so we can help you with this? I want to minimize the noise for the five people getting emails about this thread. |
Sample file:
Full stack trace:
The text was updated successfully, but these errors were encountered: