Skip to content

Cannot find module 'babel-core' #4891

Closed
@ingro

Description

@ingro

Hello, I've updated jest from 20.0.4 to latest (21.2.1) and got this error for all my tests:

 FAIL  tests\helpers\validator.test.js
  ● Test suite failed to run

    Cannot find module 'babel-core'

      at Function.Module._resolveFilename (module.js:536:15)
      at Function.Module._load (module.js:466:25)
      at Module.require (module.js:579:17)
      at require (internal/module.js:11:18)

Strange thing is that babel-core (v 6.26.0) is installed and listed in my package.json file.
Rolling back to 20.x solves the problem. I see that there are a lot of similar issues but they all seems related to babel v7, while I've problems with babel v6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions