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

[jest-plugin-fs] Babel 7 'cannot find module' issue #94

Open
shazron opened this issue Feb 19, 2019 · 0 comments
Open

[jest-plugin-fs] Babel 7 'cannot find module' issue #94

shazron opened this issue Feb 19, 2019 · 0 comments

Comments

@shazron
Copy link

shazron commented Feb 19, 2019

Error:

Cannot find module 'babel-runtime/core-js/object/entries' from 'fs.js'

In the built file, I see var _entries=require('babel-runtime/core-js/object/entries') which is the problem. I'm not sure what the exact fix is but @loganfsmyth mentioned that perhaps he can help if you have questions (in the BabelJs Slack).

The workaround for Babel 7 is to install babel-runtime@6

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

1 participant