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

[cli] Fails to install example when passing a directory #4596

Open
bharatkashyap opened this issue Jan 12, 2025 · 2 comments · May be fixed by #4597
Open

[cli] Fails to install example when passing a directory #4596

bharatkashyap opened this issue Jan 12, 2025 · 2 comments · May be fixed by #4597
Assignees
Labels
create-toolpad-app Issues related to the `create-toolpad-app` CLI tool regression A bug, but worse

Comments

@bharatkashyap
Copy link
Member

@bharatkashyap bharatkashyap added regression A bug, but worse create-toolpad-app Issues related to the `create-toolpad-app` CLI tool labels Jan 12, 2025
@bharatkashyap bharatkashyap linked a pull request Jan 12, 2025 that will close this issue
@Janpot Janpot added good first issue Great for first contributions. Enable to learn the contribution process. and removed good first issue Great for first contributions. Enable to learn the contribution process. labels Jan 13, 2025
@Janpot Janpot moved this from Backlog to In progress in MUI Toolpad public roadmap Jan 13, 2025
@devasyadave
Copy link

Faced the following error when trying to install auth-nextjs-themed example

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @react-spring/[email protected]
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 C:\Users\Acer\AppData\Local\npm-cache_logs\2025-01-17T10_27_52_213Z-eresolve-report.txt

npm error A complete log of this run can be found in: C:\Users\Acer\AppData\Local\npm-cache_logs\2025-01-17T10_27_52_213Z-debug-0.log

@bharatkashyap
Copy link
Member Author

Faced the following error when trying to install auth-nextjs-themed example

npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: [email protected] npm error Found: [email protected] npm error node_modules/react npm error react@"^19.0.0" from the root project npm error npm error Could not resolve dependency: npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @react-spring/[email protected] 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 C:\Users\Acer\AppData\Local\npm-cache_logs\2025-01-17T10_27_52_213Z-eresolve-report.txt

npm error A complete log of this run can be found in: C:\Users\Acer\AppData\Local\npm-cache_logs\2025-01-17T10_27_52_213Z-debug-0.log

Hi @devasyadave - this is related to a peer dependency conflict because of a depedency pmndrs/react-spring#2341

Till this is resolved, I'd recommend using pnpm install which will work with a warning, or npm install --legacy-peer-deps to bypass the peer dependency conflict issue with npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-toolpad-app Issues related to the `create-toolpad-app` CLI tool regression A bug, but worse
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

3 participants