Shopify / Shopify/discounts-reference-app

npm install error with discounts-reference-app/examples/react-router-app

Open
#55 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
10
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I tried to clone and install the react-router-app example but got this error.

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: app@undefined
npm error Found: react-router@7.7.1
npm error node_modules/react-router
npm error react-router@"7.7.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react-router@"^7.8.1" from @react-router/dev@7.8.1
npm error node_modules/@react-router/dev
npm error @react-router/dev@"7.8.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/odmin/.npm/_logs/2025-10-11T22_33_39_523Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/odmin/.npm/_logs/2025-10-11T22_33_39_523Z-debug-0.log

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running npm install in discounts-reference-app/examples/react-router-app and inspect the declared react-router and @react-router/dev versions shown in the error. Confirm the dependency versions are compatible, then verify that a normal npm install completes without --force or --legacy-peer-deps.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.