You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10
Binaries:
Node: 18.20.3
npm: 10.7.0
Yarn: 1.22.22
pnpm: 9.4.0
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 18.20.3 npm: 10.7.0 Yarn: 1.22.22 pnpm: 9.4.0
Which example does this report relate to?
https://nextjs.org/learn/dashboard-app/getting-started
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Running
npx create-next-app@latest nextjs-dashboard --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example"
is failing due to invalid package references:
Downloading files from repo https://github.com/vercel/next-learn/tree/main/dashboard/starter-example. This might take a moment.
Installing packages. This might take a couple of minutes.
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: undefined@undefined
npm error Found: react@19.0.0-rc-6230622a1a-20240610
npm error node_modules/react
npm error react@"19.0.0-rc-6230622a1a-20240610" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@">= 16" from @heroicons/react@2.1.4
npm error node_modules/@heroicons/react
npm error @heroicons/react@"^2.0.18" 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 /Users/aswk/.npm/_logs/2024-06-20T11_26_07_649Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/aswk/.npm/_logs/2024-06-20T11_26_07_649Z-debug-0.log
Aborting installation.
npm install has failed.
Invalid package version references where introduced in commit: vercel/next-learn@58f9a68
Installing the GIT repository version just prior to this commit is working as expected:
npx create-next-app@latest nextjs-dashboard --example "https://github.com/vercel/next-learn/tree/646898bc52d2bc22be9019871cf111e31b29d147/dashboard/starter-example"
Expected Behavior
Should install the nextjs-dashboard project.
To Reproduce
Execute:
npx create-next-app@latest nextjs-dashboard --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example"
The text was updated successfully, but these errors were encountered: