Open mpellegrini opened 3 years ago
This seems to be related to when useWorkspaces
is true
in rush.json.
When I turn this flag to false, then able to rush build
successfully.
I've seen this issue before as well. @octogonz, I remember you having a solution?
There are multiple different ways this problem can arise. Someone needs to investigate @mpellegrini's repro and determine what's up. I'll see if I can find some time.
I had posted a question in the chat room here but not getting any responses https://rushstack.zulipchat.com/#narrow/stream/262513-general/topic/later.20version.20of.20pnpm.20not.20resolving.20deps.20defined.20in.20rig
Summary
Trying to define a project in rush that has a devDependency on the following in package.json:
As per the docs here https://rushstack.io/pages/heft/rig_packages/, I should not have to explicitly list eslint and typescript as devDependencies because they are already defined in heft-node-rig. However, if I don't explicitly list eslint and typescript, running rush update fails.
I have been able to reproduce this issue using a modified version of the rush-examples repo. See below for details.
Repro steps
To reproduce the error,
in the root of the project run
rush build
Expected result: successful build
Actual result:
The command failed: /Users/michael/delme/rushstack-samples/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /Users/michael/delme/rushstack-samples/common/temp/pnpm-store --no-prefer-frozen-lockfile --strict-peer-dependencies ERROR: Error: The command failed with exit code 1
Giving up after 3 attempts