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

how can I install and use it on Next.js 15 #1181

Closed
AndrianarivoAlpha opened this issue Nov 29, 2024 · 3 comments
Closed

how can I install and use it on Next.js 15 #1181

AndrianarivoAlpha opened this issue Nov 29, 2024 · 3 comments

Comments

@AndrianarivoAlpha
Copy link

Hello everyone,
I want to add react-tostify on my Nextjs app but it have error

$ npm install --save react-toastify
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: web@0.1.0
npm error Found: react@19.0.0-rc-66855b96-20241106
npm error node_modules/react
npm error react@"19.0.0-rc-66855b96-20241106" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@">=18" from react-toastify@10.0.6
npm error node_modules/react-toastify
npm error react-toastify@"*" 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

How can I install it on Nextjs 15 app please?

@Michael-Forson
Copy link

I am also facing the same problem

@Adityapanther
Copy link

same issue reported at #1177

@fkhadra fkhadra mentioned this issue Dec 10, 2024
@fkhadra
Copy link
Owner

fkhadra commented Dec 16, 2024

Hey, I've released a new major version, please read the release note before upgrading 🙏🏽. There is also an example on stackblitz with nextjs

@fkhadra fkhadra closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants