Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh Ember addon indirectly depends on core-js@2 #20818

Open
paddor opened this issue Jan 3, 2025 · 12 comments
Open

Fresh Ember addon indirectly depends on core-js@2 #20818

paddor opened this issue Jan 3, 2025 · 12 comments

Comments

@paddor
Copy link

paddor commented Jan 3, 2025

🐞 Describe the Bug

I've noticed that even a freshly initialized Ember 5.12.0 addon depends on [email protected], which is deprecated. This seems to happen because:

$ pnpm why -r [email protected] --long
[...]
dependencies:
ember-auto-import 2.10.0
│ Zero-config import from NPM packages
│ git+https://github.com/embroider-build/ember-auto-import.git
│ https://github.com/embroider-build/ember-auto-import#readme
│ /home/user/dev/node_modules/.pnpm/[email protected][email protected]/node_modules/ember-auto-import
└─┬ @embroider/macros 1.16.10
  │ Standardized build-time macros for ember apps.
  │ git+https://github.com/embroider-build/embroider.git
  │ https://github.com/embroider-build/embroider#readme
  │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@embroider/macros
  └─┬ ember-cli-babel 7.26.11
    │ Ember CLI addon for Babel
    │ git://github.com/babel/ember-cli-babel.git
    │ https://github.com/babel/ember-cli-babel
    │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-babel
    ├─┬ @babel/polyfill 7.12.1
    │ │ Provides polyfills necessary for a full ES2015+ environment
    │ │ git+https://github.com/babel/babel.git
    │ │ https://babeljs.io/
    │ │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
    │ └── core-js 2.6.12
    │     Standard library
    │     git+https://github.com/zloirock/core-js.git
    │     https://github.com/zloirock/core-js#readme
    │     /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
    └─┬ broccoli-babel-transpiler 7.8.1
      │ A Broccoli plugin which transpile ES6 to readable ES5 by using babel.
      │ git+https://github.com/babel/broccoli-babel-transpiler.git
      │ https://github.com/babel/broccoli-babel-transpiler
      │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/broccoli-babel-transpiler
      └─┬ @babel/polyfill 7.12.1
        │ Provides polyfills necessary for a full ES2015+ environment
        │ git+https://github.com/babel/babel.git
        │ https://babeljs.io/
        │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
        └── core-js 2.6.12
            Standard library
            git+https://github.com/zloirock/core-js.git
            https://github.com/zloirock/core-js#readme
            /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
ember-data 5.3.9
│ The lightweight reactive data library for JavaScript applications
│ git+ssh://[email protected]/emberjs/data.git
│ https://github.com/emberjs/data#readme
│ /home/user/dev/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]_@glimmer+co_z6d4xcpwkhsmj4msy2joek3nhy/node_modules/ember-data
└─┬ @ember-data/adapter 5.3.9
  │ Provides Legacy JSON:API and REST Implementations of the Adapter Interface for use with @ember-data/store
  │ git+ssh://[email protected]/emberjs/data.git
  │ https://github.com/emberjs/data#readme
  │ /home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]_t2rxkbrt4crzotbgvggrkxun4i__@ember-_45ghzi4l7aenlnsfi7fr7ir7vu/node_modules/@ember-data/adapter
  └─┬ @ember-data/legacy-compat 5.3.9 peer
    │ Compatibility Shims for Older EmberData
    │ git+ssh://[email protected]/emberjs/data.git
    │ https://github.com/emberjs/data
    │ /home/user/dev/node_modules/.pnpm/@[email protected]_t2rxkbrt4crzotbgvggrkxun4i/node_modules/@ember-data/legacy-compat
    └─┬ @ember-data/request 5.3.9 peer
      │ ⚡️ A simple, small and fast framework-agnostic library to make `fetch` happen
      │ git+ssh://[email protected]/emberjs/data.git
      │ https://github.com/emberjs/data
      │ /home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@ember-data/request
      ├─┬ @ember/test-waiters 3.1.0
      │ │ Allow tests to be aware of addon / application asynchrony.
      │ │ git+https://github.com/emberjs/ember-test-waiters.git
      │ │ https://github.com/emberjs/ember-test-waiters#readme
      │ │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@ember/test-waiters
      │ └─┬ ember-cli-babel 7.26.11
      │   │ Ember CLI addon for Babel
      │   │ git://github.com/babel/ember-cli-babel.git
      │   │ https://github.com/babel/ember-cli-babel
      │   │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-babel
      │   ├─┬ @babel/polyfill 7.12.1
      │   │ │ Provides polyfills necessary for a full ES2015+ environment
      │   │ │ git+https://github.com/babel/babel.git
      │   │ │ https://babeljs.io/
      │   │ │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
      │   │ └── core-js 2.6.12
      │   │     Standard library
      │   │     git+https://github.com/zloirock/core-js.git
      │   │     https://github.com/zloirock/core-js#readme
      │   │     /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
      │   └─┬ broccoli-babel-transpiler 7.8.1
      │     │ A Broccoli plugin which transpile ES6 to readable ES5 by using babel.
      │     │ git+https://github.com/babel/broccoli-babel-transpiler.git
      │     │ https://github.com/babel/broccoli-babel-transpiler
      │     │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/broccoli-babel-transpiler
      │     └─┬ @babel/polyfill 7.12.1
      │       │ Provides polyfills necessary for a full ES2015+ environment
      │       │ git+https://github.com/babel/babel.git
      │       │ https://babeljs.io/
      │       │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
      │       └── core-js 2.6.12
      │           Standard library
      │           git+https://github.com/zloirock/core-js.git
      │           https://github.com/zloirock/core-js#readme
      │           /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
      ├─┬ @embroider/macros 1.16.10
      │ │ Standardized build-time macros for ember apps.
      │ │ git+https://github.com/embroider-build/embroider.git
      │ │ https://github.com/embroider-build/embroider#readme
      │ │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@embroider/macros
      │ └─┬ ember-cli-babel 7.26.11
      │   │ Ember CLI addon for Babel
      │   │ git://github.com/babel/ember-cli-babel.git
      │   │ https://github.com/babel/ember-cli-babel
      │   │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-babel
      │   ├─┬ @babel/polyfill 7.12.1
      │   │ │ Provides polyfills necessary for a full ES2015+ environment
      │   │ │ git+https://github.com/babel/babel.git
      │   │ │ https://babeljs.io/
      │   │ │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
      │   │ └── core-js 2.6.12
      │   │     Standard library
      │   │     git+https://github.com/zloirock/core-js.git
      │   │     https://github.com/zloirock/core-js#readme
      │   │     /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
      │   └─┬ broccoli-babel-transpiler 7.8.1
      │     │ A Broccoli plugin which transpile ES6 to readable ES5 by using babel.
      │     │ git+https://github.com/babel/broccoli-babel-transpiler.git
      │     │ https://github.com/babel/broccoli-babel-transpiler
      │     │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/broccoli-babel-transpiler
      │     └─┬ @babel/polyfill 7.12.1
      │       │ Provides polyfills necessary for a full ES2015+ environment
      │       │ git+https://github.com/babel/babel.git
      │       │ https://babeljs.io/
      │       │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
      │       └── core-js 2.6.12
      │           Standard library
      │           git+https://github.com/zloirock/core-js.git
      │           https://github.com/zloirock/core-js#readme
      │           /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
      ├─┬ @warp-drive/build-config 0.0.0-beta.7
      │ │ Provides Build Configuration for projects using WarpDrive or EmberData
      │ │ git+ssh://[email protected]/emberjs/data.git
      │ │ https://github.com/emberjs/data#readme
      │ │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@warp-drive/build-config
      │ └─┬ @embroider/macros 1.16.10
      │   │ Standardized build-time macros for ember apps.
      │   │ git+https://github.com/embroider-build/embroider.git
      │   │ https://github.com/embroider-build/embroider#readme
      │   │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@embroider/macros
      │   └─┬ ember-cli-babel 7.26.11
      │     │ Ember CLI addon for Babel
      │     │ git://github.com/babel/ember-cli-babel.git
      │     │ https://github.com/babel/ember-cli-babel
      │     │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-babel
      │     ├─┬ @babel/polyfill 7.12.1
      │     │ │ Provides polyfills necessary for a full ES2015+ environment
      │     │ │ git+https://github.com/babel/babel.git
      │     │ │ https://babeljs.io/
      │     │ │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
      │     │ └── core-js 2.6.12
      │     │     Standard library
      │     │     git+https://github.com/zloirock/core-js.git
      │     │     https://github.com/zloirock/core-js#readme
      │     │     /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
      │     └─┬ broccoli-babel-transpiler 7.8.1
      │       │ A Broccoli plugin which transpile ES6 to readable ES5 by using babel.
      │       │ git+https://github.com/babel/broccoli-babel-transpiler.git
      │       │ https://github.com/babel/broccoli-babel-transpiler
      │       │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/broccoli-babel-transpiler
      │       └─┬ @babel/polyfill 7.12.1
      │         │ Provides polyfills necessary for a full ES2015+ environment
      │         │ git+https://github.com/babel/babel.git
      │         │ https://babeljs.io/
      │         │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
      │         └── core-js 2.6.12
      │             Standard library
      │             git+https://github.com/zloirock/core-js.git
      │             https://github.com/zloirock/core-js#readme
      │             /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
      └─┬ @warp-drive/core-types 0.0.0-beta.12 peer
        │ Provides core logic, utils and types for WarpDrive and EmberData
        │ git+ssh://[email protected]/emberjs/data.git
        │ https://github.com/emberjs/data#readme
        │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@warp-drive/core-types
        └─┬ @embroider/macros 1.16.10
          │ Standardized build-time macros for ember apps.
          │ git+https://github.com/embroider-build/embroider.git
          │ https://github.com/embroider-build/embroider#readme
          │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@embroider/macros
          └─┬ ember-cli-babel 7.26.11
            │ Ember CLI addon for Babel
            │ git://github.com/babel/ember-cli-babel.git
            │ https://github.com/babel/ember-cli-babel
            │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-babel
            ├─┬ @babel/polyfill 7.12.1
            │ │ Provides polyfills necessary for a full ES2015+ environment
            │ │ git+https://github.com/babel/babel.git
            │ │ https://babeljs.io/
            │ │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
            │ └── core-js 2.6.12
            │     Standard library
            │     git+https://github.com/zloirock/core-js.git
            │     https://github.com/zloirock/core-js#readme
            │     /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js
            └─┬ broccoli-babel-transpiler 7.8.1
              │ A Broccoli plugin which transpile ES6 to readable ES5 by using babel.
              │ git+https://github.com/babel/broccoli-babel-transpiler.git
              │ https://github.com/babel/broccoli-babel-transpiler
              │ /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/broccoli-babel-transpiler
              └─┬ @babel/polyfill 7.12.1
                │ Provides polyfills necessary for a full ES2015+ environment
                │ git+https://github.com/babel/babel.git
                │ https://babeljs.io/
                │ /home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill
                └── core-js 2.6.12
                    Standard library
                    git+https://github.com/zloirock/core-js.git
                    https://github.com/zloirock/core-js#readme
                    /home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js

🔬 Minimal Reproduction

ember addon my-app-webui-addon --skip-git --skip-npm

😕 Actual Behavior

Deprecated packages are in the dependencies.

🤔 Expected Behavior

I expect non-deprecated packages are in the dependencies.

🌍 Environment

  • Ember-CLI: 5.12.0
  • Node.js/npm: v22.12.0 lts/jod
  • OS: Ubuntu 22.04
@NullVoxPopuli
Copy link
Contributor

All of this is from babel -- not much we can do? tho, do you have suggestions?

@paddor
Copy link
Author

paddor commented Jan 3, 2025

By "babel" do you mean ember-cli-babel? Because that seems to be the culprit. It seems to me that [email protected] is installed, which from December 2021 and depends on @babel/polyfill, which, according to [1], has long been deprecated.

I don't have any suggestions as I find the JS world quite confusing. How does this happen? How can it be fixed?

[1] https://babeljs.io/docs/babel-polyfill

@NullVoxPopuli
Copy link
Contributor

well, just @babel/polyfill

 @babel/polyfill 7.12.1
  └── core-js 2.6.12

are you saying this isn't needed anymore?

@paddor
Copy link
Author

paddor commented Jan 3, 2025

I don't know. Is it needed? According to the Babel website itself, @babel/polyfill has been deprecated since Babel 7.4.0.

I initialized a new Ember 5.12 addon to cross-check what a modern addon would depend on and it seems to depend on ancient packages.

What I did:

nvm use lts/jod
ember version #=> 5.12.0
ember addon my-app-webui-addon --skip-git
cd my-app-webui-addon
pnpm install

Then when checking for ember-cli-babel/core-js@2, I get this:

 ~/d/my-app-webui-addon  $ pnpm why -r ember-cli-babel --long --no-optional --prod --parseable
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]_t2rxkbrt4crzotbgvggrkxun4i__@ember-_45ghzi4l7aenlnsfi7fr7ir7vu/node_modules/@ember-data/adapter:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_t2rxkbrt4crzotbgvggrkxun4i/node_modules/@ember-data/legacy-compat:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@ember-data/request:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@ember-data/request-utils:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@ember/test-waiters:@ember/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@embroider/macros:@embroider/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@warp-drive/build-config:@warp-drive/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@warp-drive/core-types:@warp-drive/[email protected]
/home/user/dev/node_modules/.pnpm/[email protected][email protected]/node_modules/ember-auto-import:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-babel:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/ember-cli-babel:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]_@glimmer+co_z6d4xcpwkhsmj4msy2joek3nhy/node_modules/ember-data:[email protected]
~/d/my-app-webui-addon  $ pnpm why -r core-js@2 --long --no-optional --prod --parseable
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill:@babel/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]_t2rxkbrt4crzotbgvggrkxun4i__@ember-_45ghzi4l7aenlnsfi7fr7ir7vu/node_modules/@ember-data/adapter:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_t2rxkbrt4crzotbgvggrkxun4i/node_modules/@ember-data/legacy-compat:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@ember-data/request:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@ember/test-waiters:@ember/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@embroider/macros:@embroider/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@warp-drive/build-config:@warp-drive/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@warp-drive/core-types:@warp-drive/[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]/node_modules/broccoli-babel-transpiler:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]/node_modules/core-js:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected][email protected]/node_modules/ember-auto-import:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-babel:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]_@glimmer+co_z6d4xcpwkhsmj4msy2joek3nhy/node_modules/ember-data:[email protected]

Where did I go wrong?

@NullVoxPopuli
Copy link
Contributor

we need ember-cli-babel, the main issue is whether or not we can get rid of @babel/polyfill.

A subset of your initial query would be helpful

pnpm why @babel/polyfill

looks like you'd get

  • broccoli-babel-transpiler
  • ember-cli-babel

not sure of any others.
but we'd probably want to PR the removal of @babel/polyfill to those two projects 🎉

Which, I'm a huge fan of, as less dependencies is better for everyone!

@paddor
Copy link
Author

paddor commented Jan 4, 2025

Querying for @babel/polyfill outputs nothing.

Is this helpful instead?

$ pnpm why -r @babel/polyfill --parseable --long
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@babel/polyfill:@babel/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]_t2rxkbrt4crzotbgvggrkxun4i__@ember-_45ghzi4l7aenlnsfi7fr7ir7vu/node_modules/@ember-data/adapter:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_t2rxkbrt4crzotbgvggrkxun4i/node_modules/@ember-data/legacy-compat:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@ember-data/request:@ember-data/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected][email protected]_@[email protected]_@ba_c3c3vutusiueumjq5l6x67pyiy/node_modules/@ember/test-helpers:@ember/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@ember/test-waiters:@ember/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@embroider/macros:@embroider/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@glimmer/component:@glimmer/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@warp-drive/build-config:@warp-drive/[email protected]
/home/user/dev/node_modules/.pnpm/@[email protected]/node_modules/@warp-drive/core-types:@warp-drive/[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]/node_modules/broccoli-babel-transpiler:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected][email protected]/node_modules/ember-auto-import:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-babel:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]/node_modules/ember-cli-test-loader:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]_@glimmer+co_z6d4xcpwkhsmj4msy2joek3nhy/node_modules/ember-data:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/ember-load-initializers:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]_@glimmer+c_fjw3k3it5ya7aicezi6xseosny/node_modules/ember-qunit:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected][email protected]_@[email protected]_@[email protected][email protected][email protected]_/node_modules/ember-resolver:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/ember-source:[email protected]
/home/user/dev/node_modules/.pnpm/[email protected]/node_modules/qunit-dom:[email protected]

Honestly I don't know much about JS stuff. I just know that core-js@2 is not maintained anymore and I was surprised that a modern Ember addon would depend on it.

@NullVoxPopuli
Copy link
Contributor

not particularly, the output from --parseable doesn't give us the hierarchy

I was surprised that a modern Ember addon would depend on it.

this is fair -- however the build system also supports libraries from the dark ages -- compatibility or rather "stability without stagnation" is ember's motto

@bertdeblock
Copy link
Member

ember-cli-babel v8 got rid of @babel/polyfill, so we just need to make sure that ember-cli-babel v7 isn't used anymore.

@paddor
Copy link
Author

paddor commented Jan 4, 2025

How do I use ember-cli-babel v8? I just tried removing the meta package ember-data and replaced with with what I hoped to be the bare minimum: @ember-data/store and @ember-data/model. Unfortunately @ember-data/[email protected] depends on @ember-data/legacy-compat, which indirectly still depends on [email protected].

@bertdeblock
Copy link
Member

You can force v8 using E.g. Yarn resolutions or pnpm overrides, but we should also try to update to v8 in those packages as well.

@paddor
Copy link
Author

paddor commented Jan 6, 2025

I've tried using pnpm overrides in our app and two addons like this:

+   "pnpm": {
+     "overrides": {
+       "ember-cli-babel": "^8.2.0"
+     }
+   },

This seems to work. No more core-js@2 causing problems on the CLI with pnpm.

Can this issue be used to coordinate the upgrade to ember-cli-babel v8 in other Ember projects?

@bertdeblock
Copy link
Member

bertdeblock commented Jan 6, 2025

I guess it can.
Separate issues in the corresponding repos would help as well, to notify the maintainers.
Updating the addons to the v2 spec (if possible) would fix it as well, as v2 addons don't use ember-cli-babel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants