Skip to content

rush update / pnpm install incongruence (--strict-peer-dependencies with nextjs demonstration) #1973

@dfee

Description

@dfee

Please prefix the issue title with the project name i.e. [rush], [api-extractor] etc.

Is this a feature or a bug?

  • Feature
  • Bug

Please describe the actual behavior.
rush update fails to install packages, but running the failed pnpm install command directly succeeds.

If the issue is a bug, how can we reproduce it? Please provide detailed steps and include a GitHub branch if applicable. Your issue will get resolved faster if you can make it easy to investigate.

  1. checkout the repo (branch: nextjs): https://github.com/dfee/rush-issues/tree/nextjs
  2. run rush update, to get the following error

 ERROR  @rush-temp/primary > next: @next/react-refresh-utils@9.4.4 requires a peer of react-refresh@0.8.3 but none was installed.
Resolving: total 718, reused 33, downloaded 0

The command failed:
/Users/dfee/code/rush-issues/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /Users/dfee/code/rush-issues/common/temp/pnpm-store --no-lock --no-prefer-frozen-lockfile --strict-peer-dependencies --resolution-strategy=fewer-dependencies

  1. run the failed pnpm command directly:

/Users/dfee/code/rush-issues/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /Users/dfee/code/rush-issues/common/temp/pnpm-store --no-lock --no-prefer-frozen-lockfile --strict-peer-dependencies --resolution-strategy=fewer-dependencies

What is the expected behavior?
...

If this is a bug, please provide the tool version, Node.js version, and OS.

  • Tool: rush
  • Tool Version: v5.27.0
  • Node Version: v12.16.3
    • Is this a LTS version? yes
    • Have you tested on a LTS version? this is lts.
  • OS: macOS 10.15.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions