Open ickata opened 2 years ago
Based on https://github.com/mui/material-ui/issues/23290, you need babel-runtime 7.12.0 or newer for it to work with webpack 5.
But I don’t see it in the dependency list of the generated package.json, even if I create a fresh new app.
I am having a similar error with @babel/runtime@7.19.0
.
Edit: my workaround was to avoid the import. In an NexJS app, it works.
Just for those coming back to this with the same issues.
here's my solution: https://github.com/mui/material-ui/issues/23290#issuecomment-1333868837
Describe the bug
After upgrading
react-scripts
to latest5.0.0
(was:4.0.1
) I cannot build my project because I get this:Did you try recovering your dependencies?
Yes, no success.
Which terms did you search for in User Guide?
Environment
Steps to reproduce
No exact steps, however I am not able to reproduce the issue w/ a fresh CRA install.