@babel/plugin-transform-runtime 7.12.10 breaks pnpm monorepo
See original GitHub issueBug Report
Current behavior
I updated the @babel/plugin-transform-runtime
dependency in one of my projects from, which is a pnpm monorepo. Version 7.12.1
was working fine, but 7.12.10
throws an error. I’m guessing this change is breaking: 208acb1d6c216b265fd49b9d393237a45725ff6a
[!] Error: Could not load /<ROOT>/node_modules/.pnpm/@babel/runtime@7.12.5/node_modules/@babel/runtime/helpers/esm/objectSpread2 (imported by ../other-package/dist/other-package.esm.js): ENOENT: no such file or directory, open '/<ROOT>/node_modules/.pnpm/@babel/runtime@7.12.5/node_modules/@babel/runtime/helpers/esm/objectSpread2'
Expected behavior resolving babel-runtime packages should still work.
Environment
System:
OS: Linux 4.19 Ubuntu 20.04.1 LTS (Focal Fossa)
Binaries:
Node: 14.15.0 - ~/.nvm/versions/node/v14.15.0/bin/node
Yarn: 1.22.5 - /usr/bin/yarn
npm: 6.14.9 - ~/.nvm/versions/node/v14.15.0/bin/npm
npmPackages:
@babel/plugin-transform-runtime: ^7.12.1 => 7.12.10
@babel/preset-env: ^7.12.10 => 7.12.10
@babel/runtime: ^7.12.5 => 7.12.5
- Babel version(s): (see above)
- Node/npm version: v14
- OS: Ubuntu
- Monorepo: pnpm
- How you are using Babel: rollup
Additional context
Reverting to 7.12.1
fixed this issue for me
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
[Bug]: Update from 7.17.10 to 7.17.12 breaks Charka Theme ...
I guess, I cannot rely on a fix since my monorepo is complicated and it might be somehow related to the structure and/or...
Read more >babel/plugin-transform-runtime - npm
Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals. Latest version: 7.19.6, ...
Read more >Upgrade to Babel 7
Refer users to this document when upgrading to Babel 7. Check here for API/integration changes. Because not every breaking change will affect every...
Read more >pnpm/pnpm - Gitter
How to properly do npm install --save babel-runtime/core-js/object/keys with pnpm? ... I'm running into an issue with pnpm and the vscode-eslint plugin.
Read more >@babel/generator - NPM Package Overview - Socket
babel-helpers , babel-plugin-transform-destructuring , babel-plugin-transform-modules-commonjs , babel-preset-env , babel-runtime-corejs2 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I set up a small repro, turns out it’s not
@babel/plugin-transform-runtime
but@rollup/plugin-node-resolve
that breaks imports from@babel/runtime
(ref: https://github.com/rollup/plugins/issues/684). Sorry for the inconvenience!Can you show the full stack trace? Also, are you sure you don’t have another config? That one doesn’t use
@babel/plugin-transform-runtime
.