babel: @babel/runtime@7.12.17 Cannot find module 'node_modules/@babel/runtime/helpers/interopRequireWildcard.js'

Bug Report

  • I would like to work on a fix!

Current behavior

Rollup fails when updating from 7.12.16 --> 7.12.17

~I’ll try to throw up a repo to reproduce shortly, but wanted to raise this ASAP since a handful of my CI builds fail with this update.~

EDIT: Reproducible here. See Instructions.

Expected behavior

Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)

  • Filename: .babelrc.json
{
  "plugins": ["@babel/plugin-transform-runtime"],
  "presets": [
    [
      "@babel/preset-env",
      {
        "targets": {
          "node": "current"
        }
      }
    ]
  ]
}

Environment

  System:
    OS: macOS 11.2.1
  Binaries:
    Node: 14.15.4 - /usr/local/bin/node
    npm: 6.14.10 - /usr/local/bin/npm
  npmPackages:
    @babel/core: ^7.12.16 => 7.12.17 
    @babel/plugin-transform-runtime: ^7.12.15 => 7.12.17 
    @babel/preset-env: ^7.12.16 => 7.12.17 
    @babel/runtime: ^7.12.13 => 7.12.17 
    babel-jest: ^26.6.3 => 26.6.3 
    eslint: ^7.20.0 => 7.20.0 
    jest: ^26.6.3 => 26.6.3 

Possible Solution

Additional context

Looks like your CI is failing, so perhaps some more details there: https://github.com/babel/babel/runs/1927910861

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 26
  • Comments: 21 (6 by maintainers)

Most upvoted comments

I tagged 7.12.13 as latest on npm, hopefully it doesn’t download 7.12.17 (it’s too late to unpublish it). I know what causes the problem, I’ll open a PR soon.

I have the same error.

It’s being released by https://github.com/babel/babel/actions/runs/578672005 (it will take 5-10 mins).

I’m only 95% sure that it fixes the bug, but for sure it doesn’t make it worse 😅

I’m looking at this

This fixed it for us (note that there’s no ^):

  "devDependencies": {
    "@babel/runtime": "7.12.13",
    ...
  }

Yes it’s the same thing.

<cite>@nicolo-ribaudo</cite>

I’m looking at this

Thanks @nicolo-ribaudo. In case you missed this in between edits, here’s a simple repo to reproduce:

https://github.com/ryanvanoss/babel-issue-12816