-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Sourcemap does not work #9101
Comments
Hi @CidTori, Would you consider investigating and issuing a fixing PR? |
Standalone preset source map looks to be corrupted as well. |
@CidTori Today I stumbled upon the same error (Could not load content for webpack://SwaggerUIBundle/src/index.js (Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME). Chrome v113 and Edge displayed the error, Firefox 113 was without error. |
Any update on this? |
@CidTori I am assuming that you are passing the JSON file to your swagger and that you are also giving the host in the JSON file. Try removing the host if you are running it locally. assuming:
expected:
|
I'm not passing anything, I'm just opening https://petstore3.swagger.io/ on my browser, it's swagger.io's demo swagger-ui, I don't own it. |
I'd like to, but I won't be able to do it anytime soon, sorry 😕 |
The error was addressed in #9877. We decided that the source maps will only be available for browser environment builds, so that it's possible for them to be debugged in development: #9877 (comment) Lines 6 to 24 in 8c90d5d
This means that the source maps won't be available for |
Q&A (please complete the following information)
Content & configuration
Go to https://petstore3.swagger.io/
Describe the bug you're encountering
Sourcemaps in the DevTools does not work
To reproduce...
Steps to reproduce the behavior:
Expected behavior
The original sources should be displayed
The text was updated successfully, but these errors were encountered: