New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot read properties of undefined (reading 'node') #14822
Comments
Hey @evk8! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite. |
A good enough fix might be to add I cannot work on this until the weekend, so if someone else wants to do it please do so! |
new install version System: Likewise, I get an error. case1. it's fine! '@babel/preset-env',
{
debug: true,
useBuiltIns: 'usage',
corejs: { version: 3 },
targets: {
node: true
},
}, case2, it's error! '@babel/preset-env',
{
debug: true,
useBuiltIns: 'usage',
corejs: { version: 3 },
targets: {
browsers: ['current node', 'chrome >= 44', 'android >= 6', 'firefox >= 38', 'ios_saf >= 9', ' safari >= 9']
},
}, |
Please upgrade |
new install version System: Likewise, I get an error. Can you check if there is a possible conflict with the nextjs environment setting? it's fine case! [
'next/babel',
{
'preset-env': {
debug: true,
useBuiltIns: 'usage',
corejs: { version: 3 },
targets: {
browsers: ['current node','chrome >= 44', 'android >= 6', 'firefox >= 38', 'ios_saf >= 9', ' safari >= 9'],
},
},
},
],
/*[
'@babel/preset-env',
{
debug: true,
useBuiltIns: 'usage',
corejs: { version: 3 },
targets: {
browsers: ['current node','chrome >= 44', 'android >= 6', 'firefox >= 38', 'ios_saf >= 9', ' safari >= 9'],
},
},
],*/ |
I add "overrides": {
"@babel/helper-wrap-function": "7.18.9"
} |
@ZxBing0066 Can you try upgrading |
|
Can anyone provide a reproducible minimal code or repo? |
If you use the nextjs pure version, there seems to be no problem. |
We will reply you after work. |
Fixed in |
Just using "@babel/traverse": "7.18.11" fixed the error. |
馃捇
How are you using Babel?
babel-loader (webpack)
Input code
What was successful on July 26th is now failing.
If I remove '@babel/preset-env' it works fine.
local build is fine!
but, It happens in docker environment.
docker version : 4.10.1 (82475)
node:16-alpine
Configuration file name
babel.config.js
Configuration
Current and expected behavior
Environment
Possible solution
No response
Additional context
local build is fine!
but, It happens in docker environment.
docker version : 4.10.1 (82475)
node:16-alpine
No response
The text was updated successfully, but these errors were encountered: