Skip to content
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

[codemod] v1.0.0/import-path.js doesn't update path for TableHead #11474

Closed
1 task done
takuyanakaoka opened this issue May 18, 2018 · 0 comments · Fixed by #11477
Closed
1 task done

[codemod] v1.0.0/import-path.js doesn't update path for TableHead #11474

takuyanakaoka opened this issue May 18, 2018 · 0 comments · Fixed by #11477
Assignees
Labels
bug 🐛 Something doesn't work

Comments

@takuyanakaoka
Copy link

takuyanakaoka commented May 18, 2018

I followed this guide to migrate to v1.0.0, but a line that imports TableHead is not updated by the script.

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

Expected Behavior

import TableHead from '@material-ui/core/Table/TableHead';
should be updated to
import TableHead from '@material-ui/core/TableHead';

Current Behavior

The script doesn't update the line.
It's working correctly with @material-ui/core/Table/TableBody, so I guess there are some leaks.

Steps to Reproduce (for bugs)

  1. Write import TableHead from '@material-ui/core/Table/TableHead'; to App.js.
  2. Run jscodeshift -t node_modules/@material-ui/codemod/lib/v1.0.0/import-path.js App.js

Your Environment

Tech Version
Material-UI 1.0.0
React 16.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants