Skip to content

why can't run pnpm run dev --filter package #5938

Answered by iobuhov
WingDust asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like putting arguments after dev script/command force pnpm to:

  1. Search this script in local (current) package
  2. To pass --filter pacakge as arguments to this script (as it may be options for dev command).

But if you use filter flag before run command, then it knows that this is pnpm options and run command correctly.
I'm always use filters right after pnpm to avoid this problems.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by WingDust
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants