-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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]: @babel/helper-compilation-targets: 'opera_mobile' is not a valid target when upgrading babel/core to 7.23.6 #16171
Comments
Hey @zuyetawarmatik! 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. |
If you delete your |
You might have multiple versions of helper-compilation-targets in your project. An alternative to deleting lockfile would be to dedupe (or override) your dependency tree so it all points to yarn dedupe
# or
pnpm dedupe |
|
I use yarn and yarn cache clean, and it's not working |
I remember not dedupe automatically, but resolutions should work. |
Do you happen to have a |
our browserlist is:
We can't remove that browserslist in package.json as browserlist lib will terminate the build. I search through node_modules and find that keyword |
OK I figured out the culprit: This is due to some library is using an old version of
|
I will close this issue |
Anyone who finds themselves here looking for a solution, ignoring operah_mobile in your browserslist config solved my problem: |
as it breaks the build, due to the use of an old version of Babel babel/babel#16171 (comment)
as it breaks the build, due to the use of an old version of Babel babel/babel#16171 (comment)
馃捇
How are you using Babel?
babel-loader (webpack)
Input code
The problem happens when only upgrading @babel/core from 7.23.5 to 7.23.6. I'm using babel-loader for react
Configuration file name
No response
Configuration
No response
Current and expected behavior
Should not break the build
Environment
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.6",
"@babel/eslint-parser": "^7.23.3",
"@babel/plugin-transform-react-constant-elements": "^7.23.3",
"@babel/plugin-transform-runtime": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"babel-preset-react-app": "^10.0.1",
"webpack": "^5.89.0",
node: 20.10.0
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: