Open ghost opened 2 years ago
I test without workspace and using yarn, its successful. so quasar not support pnpm yet?
I test without workspace and using yarn, its successful. so quasar not support pnpm yet?
I met the same problem, can you solve it. I found the quasar currently supported PNPM at the experimental stage, it could be a bug
The bug is inside quasar CLI, I did not solve it, I make ppm workspace ignore quasar project and use yarn in quasar project, or you can switch to lerna and yarn for monorepo.
This might be because quasar-cli is trying to use yarn when setting up a new electron app. If there is no src-electron
folder, it uses yarn to prepare the app for using electron.
I was able to solve this by:
yarn install
yarn quasar dev -m electron
(run the local version of quasar-cli using yarn)src-electron
folder. This means quasar won't try to "set things up" next time we run our electron appyarn.lock
and node_modules
pnpm install
pnpm quasar dev -m electron
Try those steps as a workaround. It's a "best case" workaround because once setup, you'll no longer have this problem with yarn trying to run when using electron.
We'll need a longer term solution though!
In my case "quasar dev -m electron" works fine out of the box but when i use "quasar build -m electron" i get an error in console I didn't save complete error message but main is "links out of the package":
App • WAIT • Bundling app with electron-packager...
Packaging app for platform win32 x64 using electron v25.3.0
App • ⚠️ electron-packager could not build
Error: C:\Users\EGIEDR~1\AppData\Local\Temp\electron-package file "..\..\..\..\..\..\..\..\..\..\work\lkhp\lkhp-dashboard links out of the package
node:internal/process/promises:288
^
ERR_UNHANDLED_REJECTION
[UnhandledPromiseRejection: This error originated either by ot handled with .catch(). The promise rejected with the reas
}
With Yarn works fine
I guess @ldiebold's solution won't help me for the production version
What happened?
When I run quasar build and its will failed with error message(I set dist dir in project root/dist) There is package
Try electron-package or electron-builder both failed
And there is builder
starting build to dist/Unpackage in pnpm monorepo,it will remove my devDependencies in quasar project
What did you expect to happen?
build successful
Reproduction URL
https://github.com/DaiYuANg/Vinculum/tree/main/core/frontend
How to reproduce?
Clone my git repository and pnpm i && cd core/frontend && pnpm build:electron
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), Electron Mode
Platforms/Browsers
Electron
Quasar info output
Relevant log output
Additional context
In pnpm workspace(monorepo)