-
Notifications
You must be signed in to change notification settings - Fork 96
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
[conf, ajv] DevTools failed to load SourceMaps #69
Comments
I've had this too, and couldn't find a way of either rewriting the URLs to they actually loaded, and I wanted source maps to be enabled for my own code, so I couldn't disable them. Temporarily, until I do find a solution, I've done this to to remove the sourceMappingURLs from the modules. In package.json :
And in the root of my app, a file fix-node-module-source-maps.sh, set executable :
You might not need the one for uri-js, but I did. I suspect the answer is for these modules not to include sourceMappingURLs in their built files, it seems other modules don't include them. I'm new to Electron and npm, so I really don't know. It might be worth opening a ticket with them. |
This is actually (at least in part) from electron-store. I just started a fresh project and those source map errors started appearing the moment I added |
Also having this issue caused by |
Had this in a while, too. Add this to your dependencies. Note this is not in devDependencies because I needed it somehow in the production build, too.
|
Hey guys!
I spotted weird issue. It appears on development and production version as well. DevTools throws lots of warnings like: "DevTools failed to load SourceMap: Could not load content for http://localhost:8081/MY_APP_PATH/node_modules/conf/node_modules/ajv/dist/ajv.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE".
Any idea how to solve this?
It's vuex-electron v1.0.3, ajv v6.12.6 and conf v9.0.2.
The text was updated successfully, but these errors were encountered: