-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[question] How to get v6 codemod to update files? #10171
Comments
Hello, could you clarify your project folder structure and in which folder are you running the codemod? 🤔 Quite a few codemods rely on the fact that the components are imported from the |
yes, I am running the codemod from the root folder and the source code is all in the src folder.
I expected to see changes in this file... |
I can't provide the full component file... but the snippet above is the wrapper component, so now that I am understanding better how the codemods work, I'm realizing this would probably be the only file that would get changed and I will have to manually change the others. so, I guess I will just manually change this one too. bummer |
Sorry to hear that your experience with the "codemods" wasn't good.
In theory, if you'd change the import path and/or names of the components, before running the codemods, they should apply the respective changes. 🤔 |
Order ID
331993142
Duplicates
Latest version
The problem in depth 🔍
we are migrating from MUI X v5 to v6. the data grid and time picker versions are updated, and we attempt to run the codemode using the command:
npx @mui/x-codemod v6.0.0/preset-safe src
BUT results show that no files have been changed:
Results:
0 errors
355 unmodified
0 skipped
0 ok
Why would this happen? What needs to be done to get the codemod to work?
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: