-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add React 19 as peer-dependency #74
Comments
I´m getting error when building with React 19
|
I'm using it with react 19 now and it's working well, just the warning on install. Probably you're doing something wrong. I had a similar issue and the problem was the declaration in my global.d.ts file. I was missing an import there. Can you show your global.d.ts file if you have one, or the |
This works fine in development (localhost) but this error comes when I run npm run build import { MuiOtpInput } from 'mui-one-time-password-input'; Here is the part when I use this in my component:
Here is the global.d.ts file:
|
Um, a bit strange, I don't see anything wrong there. Can you share a minimal reproduction of that error? |
I don't recommend to update your MUI project to React 19 before mui/material-ui#42381 is completed. I will wait until is done and then, I will add the compatibility. |
I think they are discussing v5 of MUI in that issue, if so, since you are using MUI v6, it should be compatible already. |
https://codesandbox.io/p/sandbox/mui-one-time-password-input-forked-zsw9f3 |
Me neither, could be something related to |
Ok this is somehow related to React 19 and mui-one-time-password-input. I can get this sandbox to work with React 18. |
IDK how, but in my codebase, I was able to migrate from React 18 to 19 and everything is working, including the otp-input and the tel-input. But I'm using |
I´m also using vite in my codebase and this works in development but I get the above error when building the app. I´m just trying to replicate this in a sandbox but noticed I could not update the demo that is used in the mui-otp-input documentation. |
Does it work if you set |
Does not seem to make a difference in my case |
I don't know what could be then, I'm out of ideas. |
@ruiaraujo012 |
@viclafouch |
I will try this weekend ! Keep you posted here ! |
Now that react 19 is stable, you should add it as a peer dep.
Thanks.
The text was updated successfully, but these errors were encountered: