babel-starter-kit icon indicating copy to clipboard operation
babel-starter-kit copied to clipboard

Cannot find module 'babel-runtime'

Open Stupidism opened this issue 7 years ago • 1 comments

Problem described here and here. It seems babel-preset-es2015-rollup you used is not maintained any more.

Way to fix

Replace the lib with babel-plugin-external-helpers and add this to package.json:

 {
  "presets": [
    ["es2015", { "modules": false }]
  ],
  "plugins": [
    "external-helpers"
  ]
}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Stupidism avatar Mar 27 '17 22:03 Stupidism

@Stupidism can you post your package.json? It doesn't seems to work with this solution. Thanks =)

Edit: I've added the "transform-exports-extensions plugin and it worked:

  "babel": {
    "presets": [
      [
        "es2015",
        {
          "modules": false
        }
      ]
    ],
    "plugins": [
      "external-helpers",
      "transform-export-extensions"
    ]
  },

ThiagoMiranda avatar Oct 25 '17 22:10 ThiagoMiranda