Open abarke opened 6 months ago
After adding the following to the nuxt config the problem goes away:
export default defineNuxtConfig({
router: {
options: {
hashMode: true,
},
},
}
Seems nuxt-electron set's this here https://github.com/caoxiemeihao/nuxt-electron/blob/main/src/index.ts#L177
However since upgrading it seems in a production build that is doesn't work anymore.
After adding the following to the nuxt config the problem goes away:
export default defineNuxtConfig({ router: { options: { hashMode: true, }, }, }
Thank you for your way. I spent a full 5 hours before that. Now it works.
Seems since upgrading to the latest nuxt, nuxt-electron, and electron v30 after using electron-builder to create an installer and installing it, the 404 issue arises. This never happened before.
See: https://github.com/nuxt/nuxt/issues/15629#issuecomment-2110813784