[docs] Codemod breaks upon missing modules #45981
Labels
package: codemod
Specific to @mui/codemod
status: waiting for author
Issue with insufficient information
Related page
https://mui.com/material-ui/migration/migration-v4/
Kind of issue
Other
Issue description
When I run the codemod Run the migrator:
npx @mui/codemod@latest v5.0.0/preset-safe .
I am met with the following error:I verified the two javascript files (optimal-imports.js and preset-safe.js) are present.
Not sure if this means the conversion failed or if the codemod worked.
Context
I inherited a react webapp at work, and it is outdated. I'm trying to get it to install and build, but the @material-ui libraries were causing a lot of trouble. So I am trying to upgrade them.
Search keywords: cannot find module optimal-imports preset-safe
The text was updated successfully, but these errors were encountered: