-
Notifications
You must be signed in to change notification settings - Fork 21
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
Nuxt not rendering in the Electron window #94
Comments
UpdateAlso noticed that without --no-fork in the dev script, it picks up random port for the nuxt dev server. With --no-fork, it uses localhost:3000 as normal. The nuxt app works normally when I remove the nuxt-electron module. |
UpdateUsed this template https://vutron.cdget.com/installation-and-build/getting-started and it worked right away. |
I have the same problem on Windows 11 with the same error message. Even though Vutron works, I guess that it won't solve our problems since I don't think we can add Nuxt to a Vue installation |
Today installed Node 18 latest because I'm using Node 23.3.0 to rule out incompatibility. I copied the code from the repo, and added it manually in my code, nuxt module and vite config to rule out dependency issues. Same issues. It must be a change in nuxt package, vite package, or vite-plugin-electron. I had hope when I saw |
#90 apparently solves this!!! |
It worked! I don't know what are the downsides of using this setting, but it seems that it's fine. Thanks for the heads up! |
Hello!
I created a nuxt project with @latest. Then added the nuxt-electron module as I used to do.
Didn't work. So because I'm on Linux now not Windows, I went to Electron docs and installed dependencies for Linux.
Now those errors went away and the Electron windows opens, but the Nuxt app is not rendered.
Followed the quick-start example, read the docs again again, went to my old Issues to see if I messed up.
So my latest attempt was matching all the Nuxt deps to your versions, electron, nuxt, vite, vite-plugin-electron, vite-plugin-electron-renderer, electron-builder, and executed
pnpm install
.Nuxt keeps not rendering, no Nuxt logo loading animation. Just the empty Electron window.
Attempts to Solve
shamefully-hoist=true
which Nuxt projects don't require nowadays, but apparently for electron package it's still needed.Nothing.
So to test if Electron is working on my Kubuntu operating system, I created a new Node project, with the index.html and main.js, and installed electron v33, and its working, the HTML is rendered in the Electron window.
So this points to a nuxt-electron module issue or with one of the dependencies (vite-plugin-electron, vite-plugin-electron-rendererer...).
This is my package.json:
Environment
Node: 20.16.0
OS: Kubuntu 24.10 (Ubuntu, Debian)
The text was updated successfully, but these errors were encountered: