Installing mantine hooks got this error!

Mantine is a opensource UI library: npm install @mantine/core @mantine/hooks npm warn ERESOLVE overriding peer dependency npm warn While resolving: [email protected] npm warn Found: [email protected] npm warn node_modules/react npm warn peer react@">=16.8.0" from @floating-ui/[email protected] npm warn node_modules/@floating-ui/react npm warn @floating-ui/react@"^0.26.9" from @mantine/[email protected] npm warn node_modules/@mantine/core npm warn 26 more (@floating-ui/react-dom, ...) npm warn npm warn Could not resolve dependency: npm warn peer react@"^0.14.0 ^15.0.0 ^16.0.0 ^17.0.0" from [email protected] npm warn node_modules/react-router/node_modules/mini-create-react-context npm warn mini-create-react-context@"^0.4.0" from [email protected] npm warn node_modules/react-router npm warn npm warn Conflicting peer dependency: [email protected] npm warn node_modules/react npm warn peer react@"^0.14.0 ^15.0.0 ^16.0.0 ^17.0.0" from [email protected] npm warn node_modules/react-router/node_modules/mini-create-react-context npm warn mini-create-react-context@"^0.4.0" from [email protected] npm warn node_modules/react-router
3 Replies
kapa.ai
kapa.ai4mo ago
Hi @skyblade2954. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the information provided in the knowledge sources does not contain the necessary details to resolve the issue you're experiencing with installing Mantine hooks. The knowledge sources mainly discuss issues and updates related to the Wasp framework, including its dependencies and versioning, but they do not provide specific information about resolving conflicts with Mantine or the mini-create-react-context package. The error message you're seeing suggests a conflict between the version of React that your project is using (18.3.1) and the versions that mini-create-react-context is compatible with (0.14.0, 15.0.0, 16.0.0, or 17.0.0). You may need to downgrade your version of React or find a version of mini-create-react-context that is compatible with React 18.3.1. For more specific help, I would recommend reaching out to the maintainers of the Mantine library or the mini-create-react-context package, or consulting the relevant documentation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @skyblade2954, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho4mo ago
Are you sure Mantine supports React 18 (latest)?
skyblade2954
skyblade2954OP4mo ago
Interestingly we can close this, I deleted, package.json and made a clean install, Mantine somehow start to work with wasp Right now I could be able to make it work with wasp. wasp and Mantine can coexist
Want results from more Discord servers?
Add your server