Repository navigation
Errors from conditional exports after upgraded to Node 13.13 #32852
Description
Activity
/cc @guybedford
@JLHwung I created babel/babel#11283 specifically to avoid Babel having this error. Was the above fix not patched and released already?
@guybedford Ahh thanks. It was release in 7.9.0.
For those babel users who are affected by this issue after upgrading to node.js 13.13/12.17, please upgrade
@babel/preset-envto 7.9.0.Reacted by purarue, Bruno Alla, Martin Olsansky, Bryce Barbara, Emmanuel Quentin, Eric N, ryanjanderson, Filip Hoško, Jim, Aaron Nan and 53 moreReacted by Doan Nguyen, VuNguyen, Jesse Gibson, Filip Hoško, Aaron Nan, Kavian, VitorGiammella-Gaivota, adipaul1981, Luciano Peñafiel, Christian Muñoz and 7 moreReacted by Kavian, VitorGiammella-Gaivota, Lucas Alexander Floriani, Luciano Peñafiel, Christian Muñoz, Sebastián Osorio, tinenaoka, Rubén J.R., Felix Henninger, Mohammed Helaiwa and 4 moreGreat, I'm glad the early fix here could help!
Reacted by Huáng Jùnliàng and Rubén J.R.I had this problem in building a React Native Bob library. I solved it using
nvm install 13.12, which downgraded my node to13.12.This solution only applies if you use
nvmto manage your Node versions (if you don't I recommend it!)Reacted by bluefire2121FYI, I noticed the same issue in
12.17.x. We have to switch to12.6.xin Travis for now.- added a commit that references this issue
on Jun 6, 2020 - added a commit that references this issue
on Jun 8, 2020 2 remaining items
- added a commit that references this issue
on Jun 11, 2020 - added a commit that references this issue
on Jun 16, 2020 - added a commit that references this issue
on Jun 21, 2020 - added a commit that references this issue
on Jul 22, 2020 - added a commit that references this issue
on Aug 2, 2020 - added a commit that references this issue
on Sep 21, 2020 - added a commit that references this issue
on May 13, 2021 - added a commit that references this issue
on May 13, 2021 Ran into similar problem, though on a later Node version and using
yarnnotnpm, but this worked for me:yarn upgrade --scope @babelReacted by César A. Luis A.Ran into similar problem, though on a later Node version and using
yarnnotnpm, but this worked for me:yarn upgrade --scope @babelThis worked for me. Thanks!
ember-cli: 3.4.4 node: 12.22.12
What steps will reproduce the bug?
What is the expected behavior?
It should load the module as expected in Node.js 13.12
What do you see instead?
Additional information
Caught by the Babel CI: https://travis-ci.com/github/babel/babel/jobs/319348116#L360
The regression was likely introduced in #32351.
The file structure of
@babel/compat-datacan be simplified w.l.o.g asand the
package.json:The
corejs3-shipped-proposals.jsis a proxy which delegates to "./data/corejs3-shipped-proposals.json" for Node.js < 13.3 support.