You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am stumped: Have been trying to add this lib to an existing nuxt/electron app today and everything seems to work fine when running npx nuxi dev initially but for some reason only preload.js gets created in dist-electron but no main.js leading to the error:
Cannot find module dist-electron\main.js. Please verify that the package.json has a valid "main" entry
Nuxt 3.11.2 with Nitro 2.9.6
WARN The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api deprecated formore details.
➜ Local: http://localhost:3000/
➜ Network: use --host to expose
➜ DevTools: press Shift + Alt + D in the browser (v1.3.1)
vite v5.2.11 building for development...
watching for file changes...
vite v5.2.11 building for development...
watching for file changes...
build started...
build started... (x2)
✓ 1 modules transformed.
dist-electron/preload.js 0.38 kB │ gzip: 0.22 kB
built in 6188ms.
ℹ Vite client warmed up in 9487ms
✓ 301 modules transformed.
ERROR [vite]: Rollup failed to resolve import "fsevents" from "D:/GIT/ut-wizard/front-end/node_modules/rollup/dist/es/shared/node-entry.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
✔ Nuxt Nitro server built in 11606 ms
I am stumped: Have been trying to add this lib to an existing nuxt/electron app today and everything seems to work fine when running
npx nuxi dev
initially but for some reason only preload.js gets created in dist-electron but no main.js leading to the error:Cannot find module dist-electron\main.js. Please verify that the package.json has a valid "main" entry
nuxt.config.mts:
package.json:
The text was updated successfully, but these errors were encountered: