-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Source Map (sockjs.js.map
) results in 404 request
#1161
Comments
We'd be happy to examine a pull request. |
I believe this was introduced by #1148; certainly willing to help with a PR, but would appreciate some direction. |
ping @filipesilva |
Hm I see what's happening... The built lib has a To remove the source map directive (or load the sourcemap properly) the webpack config for the app would need to process this file. This is a similar problem to the one addressed by #1148, where the a workaround was added to prevent the build configuration of I'm not sure what the 'real' solution is besides separating the builds... @shellscape I noticed that the npm version of |
@filipesilva nah those client bundles are used in a totally different way. As a workaround, you could use the |
I added |
Even I tried
I have tried all 7 type of source maps with mimium context (no babel, no any transformations, just pure webpack with two simple js) chrome mentions |
I'm getting this warning as well, any updates? I am starting a new project and I want to keep the console as clean as possible to avoid confusing junior devs.
|
@parkerault webpack-serve |
@shellscape thanks for the reply, but can you elaborate? |
having the same issue as @parkerault described, same versions of webpack and dev server. Any updates? |
We rewrite many parts of webpack ecosystem on easy and light versions. It is fast and very stable and flexibility. Perhaps for some it seems strange why we are releasing new packages. Since the existence of webpack, we have received a lot of experience and feedback from the developers, it has allowed us to develop new approaches to solve the problems that you face. Some parts of ecosystem have problem in architecture, we can't break packages because many people still use their. |
@evilebottnawi But how do I create source maps with it? My primary problem is that I need good source map support but I cannot find any info on it from webpack-serve |
@marharyta source maps is part of webpack, please read https://webpack.js.org/configuration/devtool/ |
That is exactly what does not work for me: whenever I am including devtool (any option) it points me to client.js in browser @evilebottnawi and not to the right fule (see screenshots attached) |
sockjs.js.map
request 404s
sockjs.js.map
request 404ssockjs.js.map
) results in 404 request
you saved my life |
Somebody still has problem? if yes, please create minimum reproducible test repo, thanks! |
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks! |
I've ran into this issue today, and I just wanna comment for everyone's information, that sometimes those 404 errors result from the HTML file and the dev server running on different ports. In my case, it was a Roda app running on localhost:9292 (generating HTML) and the dev server running on localhost:8080. The dev server tried to guess to connect to localhost:9292 (based on |
This save my day too. Thanks! added devtool: 'inline-source-map' in webpack.config.js. It seems to work for me. |
|
This worked for me as well. Be sure to restart your webpack server after updating webpack.config.js. |
Code
// webpack.config.js
Actual Behavior
In recent releases, when using the Chrome inspector, a source map for sockjs is detected and a request is made to the server for /sockjs.js.map, which 404's on the server side. It'd be nice if the source map directive could be removed to avoid this.
//# sourceMappingURL=sockjs.js.map
The text was updated successfully, but these errors were encountered: