question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v1.0.0 Codemod skipping all files

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

It should update source files as described.

Current Behavior

It skips all the source files.

$ find src -name '*.js' -print | xargs jscodeshift -t node_modules/@material-ui/codemod/lib/v1.0.0/import-path.js
Processing 78 files...
Spawning 3 workers...
Sending 26 files to free worker...
Sending 26 files to free worker...
Sending 26 files to free worker...
All done.
Results:
0 errors
0 unmodified
78 skipped
0 ok
Time elapsed: 1.852seconds

Your Environment

Tech Version
Material-UI 1.0.0-rc.0
React 16.3.2
Node.js 10.1.0
NPM 6.0.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:31 (23 by maintainers)

github_iconTop GitHub Comments

8reactions
oliviertassinaricommented, May 21, 2018

@psamim You need to change the imports from material-ui to @material-ui/core before using the codemod. The codemod is only about flattening the imports.

Flattening the imports is a long and tedious work, so we automated it. Renaming material-ui to @material-ui/core is trivial.

8reactions
fzaninottocommented, May 14, 2018

Same problem here

Read more comments on GitHub >

github_iconTop Results From Across the Web

v1.0.0 Codemod skipping all files · Issue #11369 - GitHub
It should update source files as described. Current Behavior. It skips all the source files. $ find src -name '*.js' -print | xargs...
Read more >
CodeshiftCommunity: Codemods for Improved Development ...
Discover the power of codemods for your development workflow. Our tools and resources allow you to easily manage dependencies, automate refactoring, ...
Read more >
@mui/codemod - npm
A combination of all important transformers for migrating v4 to v5. ⚠️ This codemod should be run only once.
Read more >
Codemod / Introduction - Page ⋅ Storybook - Oriflame
v2.0.0. All important transformers for migrating from v1 to v2. Recommended transform command is preset-safe since it runs mui's own codemod under the...
Read more >
jscodeshift is always skipping my js files - Stack Overflow
There are two issues here. First. There is a manual step you must take to make the codemod work, as detailed in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found