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

Cannot find module 'core-js/modules/web.dom.iterable' #279

Open
yoyo837 opened this issue Oct 15, 2020 · 5 comments
Open

Cannot find module 'core-js/modules/web.dom.iterable' #279

yoyo837 opened this issue Oct 15, 2020 · 5 comments

Comments

@yoyo837
Copy link

yoyo837 commented Oct 15, 2020

Run :
npx react-codemod update-react-imports

It report:

image

@wojtekmaj
Copy link

I have a very similar error...

obraz

@threepointone
Copy link
Contributor

threepointone commented Oct 22, 2020

Can i recommend trying running this from outside the codebase? So, instead of

cd ydmap-web-clone
npx react-codemod update-react-imports

try

npx react-codemod update-react-imports ydmap-web-clone

@yoyo837
Copy link
Author

yoyo837 commented Oct 22, 2020

I got this:

tanghui@tanghuideMacBook-Pro ydmap % npx react-codemod update-react-imports ydmap-web-cloud/
npx: 435 安装成功,用时 8.778 秒
fatal: not a git repository (or any of the parent directories): .git
Thank you for using react-codemods!

But before we continue, please stash or commit your git changes.

You may use the --force flag to override this safety check.

@kelly-tock
Copy link

I used the force flag and @threepointone 's suggestion, worked for me.

@colepeters
Copy link

For posterity/findability: I ran into this issue with the array error captured above (Error: Cannot find module 'core-js/modules/es.array.filter'). I had to run the codemod from outside the project directory and with the --force flag to get it to work, but work it did!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants