Add pnpm support to quasar-cli? #11059
-
Hi everyone. First of all, thank you for releasing and maintaining such an awesome gem in the vue ecosystem. At my company we're trying to build several quasar apps which will share components and scripts also built on top of quasar. We are trying the monorepo approach with rushjs + However, we are encountering lots of errors (missing package "x") during both With that said, we are wondering if there are any plans for quasar-cli to support pnpm, which will require the cli to explicitly add the dependencies which are internally used when building or serving the app (for comparison, P.s: we could try to go with the vue-cli quasar plugin, but we value quasar-cli's capability as much as pnpm! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Update: pnpm and bun package managers are supported. pnpm: bun: Old answer: |
Beta Was this translation helpful? Give feedback.
-
I tried using Quasar with pnpm version 7.0.1. It works. 👍 Sort of. 🤷♂️ If you want to use globally installed Quasar CLI with pnpm, I have 3 scenarios for you. Scenario 1You want to use pnpm without using While reading Quasar documentation, I spotted that (in case of using Yarn) you can prefix the command with # install dependencies
pnpm install
# update dependencies
pnpm update
# development
pnpm quasar dev
# build
pnpm quasar build Scenario 2You want or need to use pnpm with using You have to create a file
In this scenario you don't have to (but you can) prefix the commands with # install dependencies
pnpm install
# update dependencies
pnpm update
# development
quasar dev
# or
# pnpm quasar dev
# build
quasar build
# or
# pnpm quasar build Scenario 3You want to use pnpm and run the commands normally without doing anything specific. Wait until someone fixes the issue by doing what I described in a comment. 😉 |
Beta Was this translation helpful? Give feedback.
Update: pnpm and bun package managers are supported.
pnpm:
bun:
Old answer:
I believe it's similar to Yarn v2 Plug'N'Play in terms of how dependencies are handled. Please read this for a thorough explanation:
#10277 (comment)