Skip to content

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

Description

@shazron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions