Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest starter-example project is containing invalid package references. #67060

Open
1 task done
awuttke opened this issue Jun 20, 2024 · 2 comments
Open
1 task done
Labels
examples Issue/PR related to examples

Comments

@awuttke
Copy link

awuttke commented Jun 20, 2024

Verify canary release

  • 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

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"

@awuttke awuttke added the examples Issue/PR related to examples label Jun 20, 2024
@syi0808
Copy link
Contributor

syi0808 commented Jun 20, 2024

i think it's duplicate vercel/next-learn#747

@ShubhamOulkar
Copy link

Use use pnpm dlx instead of npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Issue/PR related to examples
Projects
None yet
Development

No branches or pull requests

3 participants