Cannot find package 'electron', running examples
yooouuri opened this issue · 2 comments
yooouuri commented
When im trying to run the examples, im getting the following error:
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'electron' imported from /Users/youri/dev/vite-plugin-electron/index.js
Did you mean to import electron/node_modules/.pnpm/electron@21.0.1/node_modules/electron/index.js?
at new NodeError (node:internal/errors:387:5)
at packageResolve (node:internal/modules/esm/resolve:852:9)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1115:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:837:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ESMLoader.import (node:internal/modules/esm/loader:521:22)
at importModuleDynamically (node:internal/modules/cjs/loader:1094:29)
at importModuleDynamicallyWrapper (node:internal/vm/module:438:21) {
code: 'ERR_MODULE_NOT_FOUND'
}
/Users/youri/dev/vite-plugin-electron/examples/quick-start:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL vite-plugin-electron-quick-start@0.0.0 dev: `vite`
Exit status 1
git clone https://github.com/electron-vite/vite-plugin-electron.git
pnpm install
pnpm --filter vite-plugin-electron-quick-start run dev
pnpm -v
7.18.2
caoxiemeihao commented
caoxiemeihao commented