Giter VIP home page Giter VIP logo

Comments (10)

babel-bot avatar babel-bot commented on May 18, 2024

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.

liuxingbaoyu avatar liuxingbaoyu commented on May 18, 2024

If you delete your node_modules and package-lock.json and re-run npm i will it work?

from babel.

sumanbh avatar sumanbh commented on May 18, 2024

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.

zuyetawarmatik avatar zuyetawarmatik commented on May 18, 2024

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.

zuyetawarmatik avatar zuyetawarmatik commented on May 18, 2024

If you delete your node_modules and package-lock.json and re-run npm i will it work?

I use yarn and yarn cache clean, and it's not working

from babel.

liuxingbaoyu avatar liuxingbaoyu commented on May 18, 2024

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.

KlavierCat avatar KlavierCat commented on May 18, 2024

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.

zuyetawarmatik avatar zuyetawarmatik commented on May 18, 2024

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.

zuyetawarmatik avatar zuyetawarmatik commented on May 18, 2024

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.

zuyetawarmatik avatar zuyetawarmatik commented on May 18, 2024

I will close this issue

from babel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.