electron-vite / electron-vite-react

:electron: Electron + Vite + React + Sass boilerplate.
https://electron-vite.github.io
MIT License
1.93k stars 238 forks source link

When use pnpm and monorepo like turborepo the build app (from release) when open show an error #170

Closed MiniSuperDev closed 1 year ago

MiniSuperDev commented 1 year ago

The same as this https://github.com/saltyshiomix/nextron/issues/278 https://github.com/pnpm/pnpm/issues/3415#issuecomment-1042428327

To solve it, in the root of the monorepo create a file .npmrc if not exists and add this

shamefully-hoist=true
RSS1102 commented 1 year ago

Please provide the minimum demo

MiniSuperDev commented 1 year ago

To solve it, in the root of the monorepo create a file .npmrc if not exists and add this

shamefully-hoist=true