Describe the bug
after updating all packages and starting it with "npm run electron:serve", devtools/console displays the error "GET http://localhost:8080/js/about.js net::ERR_INVALID_ARGUMENT".
To Reproduce
Expected behavior
all routes with lazy loading display the error
Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):
Additional context
Add any other context about the problem here.
It seems like you delete the About.vue manualy.
Try run npm run electron:build to rebuild the vue project.
Hi xland, you are right with "npm run electron:build" the error is not displayed. I don't understand why, in dev mode I use the normal template which is given by the CLI and don't change anything. What do I have to change?
edit: and interessting info, with electron 6.X.X it doesn't display the error, only with electron 7.X.X.
This plugin is not ready for electron 7.X.X
see #540 .
The error is thrown by the prefetch script, the actual script is requested fine. In v2 prefetching will be disabled in development with electron v7+, for now set your vue.config.js to:
module.exports = {
pluginOptions: {
electronBuilder: {
chainWebpackRendererProcess: config => {
if (process.env.NODE_ENV === 'development') {
config.plugins.delete('prefetch')
}
}
}
}
}
Most helpful comment
The error is thrown by the prefetch script, the actual script is requested fine. In v2 prefetching will be disabled in development with electron v7+, for now set your
vue.config.jsto: