-
Notifications
You must be signed in to change notification settings - Fork 825
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
[bug]: resolve load source-map error #804
Comments
SolutionJust had some time to check this issue and found a similar reported issue here: This is an issue with Electron, which incorrectly resolves the sourceMappingURL generated by Webpack devtool. So, you need to correct the path. StepsOption1: Update preload.jsIf you update the following code in //# sourceMappingURL=preload.js.map with //# sourceMappingURL=file:///location/to/preload.js.map The issue will go away. This applies to both dev and prod. Option 2: Update webpack.common.jsAdd module.exports = {
//...
output: {
...
devtoolModuleFilenameTemplate:
'file:///[absolute-resource-path]',
},
}; The warning will also go away. |
See #938 for the fix. |
Thanks for the PR! |
I will test it tomorrow. Everything seems to be fine so far |
Reproduce Step
renderer
console
Note
launch
Flat
when development environment:if click weChat Login button:
if open the release
Flat
:if click weChat Login button:
The text was updated successfully, but these errors were encountered: