babel Error - 'loose' mode configuration must be the same with Node.js v20x #16446
Replies: 2 comments
-
I can not reproduce this issue. Like the error message said
It is likely that you have more than one Babel config in your project. Can you re-run babel with |
Beta Was this translation helpful? Give feedback.
-
Why are you enabling both the Also, could you try if removing This config should be enough: module.exports = {
"presets": [
"@babel/preset-env"
],
plugins: [
["@babel/plugin-proposal-decorators", { "legacy": true }]
],
assumptions: {
setPublicClassFields: true
}
}; |
Beta Was this translation helpful? Give feedback.
-
Team,
We have old project running on node.js version 12x and now planning to migrate to node.js v20x. After upgrade to node.js v20x getting error as
Actually the loose mode was already added in babel.config.js file but still getting error.
Here is the complete babel config code
here by adding babel versions that I am using on package.json with node.js version 20.11.1 and npm version 10.5.2 ( which is giving error)
Here is my eariler package.json reference with node.js version v12.19.0 and npm version 6.14.8 ( which is working fine)
kindly help me
Beta Was this translation helpful? Give feedback.
All reactions