Comments (10)
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.
from babel.
If you delete your node_modules
and package-lock.json
and re-run npm i
will it work?
from babel.
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 7.23.6
:
yarn dedupe
# or
pnpm dedupe
from babel.
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
7.23.6
:yarn dedupe # or pnpm dedupe
yarn install
will do dedupe automatically, and this is not working.
Putting into resolutions like this isn't working too.
resolutions: {
@babel/helper-compilation-targets: 7.2.6
}
from babel.
If you delete your
node_modules
andpackage-lock.json
and re-runnpm i
will it work?
I use yarn and yarn cache clean, and it's not working
from babel.
yarn install will do dedupe automatically, and this is not working.
I remember not dedupe automatically, but resolutions should work.
Can you provide a repository to reproduce?
from babel.
Do you happen to have a browserslist
config somewhere? If you do, what happens if you delete this or make its value empty?
from babel.
Do you happen to have a
browserslist
config somewhere? If you do, what happens if you delete this or make its value empty?
our browserlist is:
"browserslist": [
">0.2%",
"not dead",
"not android > 0",
"not op_mini all"
]
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 opera_mobile
is used a lot in many packages.
from babel.
OK I figured out the culprit: This is due to some library is using an old version of @babel/helper-compilation-targets
:
- @babel/helper-compilation-targets (old version, targets don't contain opera_mobile => crash)
=> @babel/helper-define-polyfill-provider (yarn resolves to 0.3.3, but not 0.4.4)
=> babel-plugin-polyfill-corejs3/babel-plugin-polyfill-corejs2 (old versions)
=> @babel/plugin-transform-runtime (old ver 7.16.4)
=> babel-preset-react-app 10.0.1 (very old, not maintained by FB since 2021) (But I can't get rid of it in near future).
from babel.
I will close this issue
from babel.
Related Issues (20)
- [Discussion] Remove `flow` support from `@babel/parser` HOT 10
- [Bug]: should parse `type A = import("mod", { with: { type: "json" }});` HOT 1
- [Bug]: @babel/preset-env not including plugins for shippedProposals HOT 4
- [Bug]: A question about the isTSX option HOT 3
- Support proposal-explicit-resource-management DisposableStack HOT 3
- Параметры командной строки, поддерживаемые пакетами Self-Extractor - Windows Client | Microsoft Learn HOT 2
- [Bug]: decorator on symbol-keyed member throws error at evaluation time HOT 2
- [Bug]: do-expressions plugin throws "Couldn't find a Program" in Babel 8 HOT 2
- [Bug]: Element decorator referencing both `this` and local private field is not compiled properly HOT 1
- Spread syntax on Uint8Array incorrectly transpiled to ES5 HOT 5
- [Bug]: The source code is indented to 4 Spaces, babel translated into 2 HOT 4
- [Bug]: BABEL_PARSE_ERROR regarding duplicate function definitions HOT 4
- [Bug]: Invalid Slack link in README file HOT 3
- [babel 8] Cleanup `@babel/plugin-transform-runtime` options HOT 9
- [Bug]: @babel/plugin-proposal-decorators helper functions are not reused HOT 2
- Consider warning when `transform-runtime`'s `version` is not speficied
- Remove `privateFieldsAsProperties` support in Babel 8
- [Bug]: plugin-transform-regenerator together with async-to-generator incorrectly shadow function name in local scope HOT 2
- [Bug]: sourceCode.getScope is not a function (`@babel/eslint-plugin`) HOT 5
- [Bug]: Incorrect computed key evaluation order when a class has only class decorators HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel.