-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
HotReload in vMain and disable nodeIntegration errors #3
Comments
Hi @rospirski,
Hot reloading is not enabled for the Main process simply because it never works properly. If you try other plugins that provide this feature you'll notice that it's pretty much useless. So I decided not to integrate something that rarely works. But might look more into that in the future.
That's because you have not defined what modules to bundle in. If you disable vRenderer: {
bundleIn: [
'core-js',
'vue',
'vue-router',
'vuex',
'my-dependency-1',
'my-dependency-2'
]
} Post an update once you try it. |
About the hotreload I didn't know it was a problem, it's not something that will disturb me, just a lack of custom. About the problem with nodeIntegration I did a clean installation of vue3 cli, with vuex, vue router, vue store, css-sass, and just followed the vuelectron installation step. The installation is completely clean, I just modified electorn-main.js, changing these lines nodeIntegration: false, I uploaded it to a github repository for you to see. |
I forgot to post the repository. |
I think I got a solution, but I hope you validate it. In "vue.configs.js" I changed the webpack target from "electron-renderer" to "web". |
@rospirski I thought about that. I also thought that you could completely remove the |
I'm building a launcher for a game. In the preload I inject only the ipc dependencies I need, and filter the channels. I found this on the internet and that's what I'm using at the moment. Making the renderer part entirely web. |
Hello, I installed your template right now.
I had two difficulties, one is that it does not restart vMain if I change any files, just a hot reload in the renderer.
And another difficulty is that I deactivated "nodeIntegration" and activated "contextIsolation".
And on my renderer console it is giving the error.
Uncaught ReferenceError: require is not defined
I appreciate if you can help me
Obs *: I am Brazilian, I am using google translate, sorry for the typos.
The text was updated successfully, but these errors were encountered: