[material-ui][docs] codemods require certain version of nodejs otherwise fails with "Unexpected token ." #42110
Labels
docs
Improvements or additions to the documentation
package: material-ui
Specific to @mui/material
support: docs-feedback
Feedback from documentation page
v5.x migration
Related page
https://mui.com/material-ui/migration/migration-v4/#run-codemods
Kind of issue
Missing information
Issue description
I've spent the last hour trying to run codemods but getting
Unexpected token .
.Eventually through trial and error I tried running older codemods and one of them told me that I need at least nodejs v12 (I was on v10). Sure enough after updating (I went to v20) the latest codemods get past the error.
Context
Migrating from mui 4 to 5
Search keywords: codemod unexpected token
The text was updated successfully, but these errors were encountered: