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 maps loading error from bundled node_modules asar archive #103344
Comments
I believe this is a chromium issue, https://bugs.chromium.org/p/chromium/issues/detail?id=1052872. According to this comment, there are three actual issues. |
Thanks @nrayburn-tech based on the discussion in that thread it is intended change to show all the sourcemap errors that were previously hidden https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1872581 @Mon-ius how are you launching insiders ? you should be only seeing the warnings in console when |
@deepak1556 I receive the warnings when opening vscode by just clicking the app in my dock, or using The error comes from the devtools, not from vscode. I don't know if |
Yes, it could help. But I prefer to know what causes these problems? If there is a way to help to load the source map instead of ignore them? |
Thanks for the clarification, seeing the warning in devtools makes sense. I was under the impression the original issue was about warnings in console without As for why they are not loaded, that is something to be investigated. Although I am pretty sure loading source maps from asar archives are not allowed. The error only appears for modules that are shipping the source maps, its quite useless to ship source maps for these modules. Will confirm the root cause and remove these maps as well. |
Note that I am experiencing the same issue, with electron-webpack, the maps of the projects js files cant be loaded |
Closing as issue does not repro in recent versions. |
MAC Version
10.15.6 (19G73)
Code Version
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/node-pty/lib/index.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/node-pty/lib/unixTerminal.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/node-pty/lib/terminal.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/node-pty/lib/eventEmitter2.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/node-pty/lib/utils.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/semver-umd/lib/semver-umd.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/xterm/lib/xterm.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/xterm-addon-unicode11/lib/xterm-addon-unicode11.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/xterm-addon-search/lib/xterm-addon-search.js.map:
DevTools failed to load SourceMap: Could not load content for file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/vscode-textmate/release/main.js.map:
The text was updated successfully, but these errors were encountered: