Closed codinginbarn closed 11 hours ago
Same error on Mac 14. Node 22.2.0:
> electron-shadcn@1.0.0 start
> electron-forge start
✔ Checking your system
✔ Locating application
✔ Loading configuration
✔ Preparing native dependencies [0.2s]
✔ Running generateAssets hook
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
An unhandled rejection has occurred inside Forge:
Error: Multiple plugins tried to take control of the start command, please remove one of them
--> vite, fuses
at PluginInterface.overrideStartLogic (/Users/ban/code/_reference/electron-shadcn/node_modules/@electron-forge/core/src/util/plugin-interface.ts:150:13)
at forgeSpawn (/Users/ban/code/_reference/electron-shadcn/node_modules/@electron-forge/core/src/api/start.ts:128:66)
at forgeSpawnWrapper (/Users/ban/code/_reference/electron-shadcn/node_modules/@electron-forge/core/src/api/start.ts:200:29)
at /Users/ban/code/_reference/electron-shadcn/node_modules/@electron-forge/core/src/api/start.ts:235:27
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /Users/ban/code/_reference/electron-shadcn/node_modules/@electron-forge/tracer/src/index.ts:51:14
at async /Users/ban/code/_reference/electron-shadcn/node_modules/@electron-forge/cli/src/electron-forge-start.ts:61:19
Hello, thanks for reporting the problem.
I've just check the issue and it's really happen, seems that the issue is related to the project's dependencies, probably introduced by dependabot.
Try to update the dependencies by running:
npm upgrade --save
After that, install the dependencies again:
npm i
I've tried this and seems to resolve, can you please check if this solve the problem.
That fixed the issue.
Sometimes I love dependabot and other times not so much :)
Thank you!
Started with git command and git bash. Then moved to PS, same issue.
On win 10 pro with Node 20.17.0.
Fairly new Electron user, so not sure how to proceed?