Open Natchii59 opened 1 month ago
use: npm config set legacy-peer-deps true
I can reproduce this, for me, I had to downgrade my React version to 18 in order for it to work.
{
...
"react": "^18",
"react-dom": "^18",
...
}
I want to keep react 19.
I set legacy-peer-deps config in .npmrc file. But now i have this...
I tried @Eldevia's solution and it also worked. You can even pass the legacy peer deps as argument for npm install.
npm i --legacy-peer-deps
I guess this is mentioned in the logs explicitly
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.
I set legacy-peer-deps config in .npmrc file. But now i have this...
You just had to put the component in client ("use client")
Describe the bug
Unable to install form component due to peer dependency error in React 19.
Affected component/components
Form
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting