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

DEPRECATION: Usage of the Ember Global is deprecated #7524

Closed
Turbo87 opened this issue May 18, 2021 · 0 comments · Fixed by #7527
Closed

DEPRECATION: Usage of the Ember Global is deprecated #7524

Turbo87 opened this issue May 18, 2021 · 0 comments · Fixed by #7527

Comments

@Turbo87
Copy link
Member

Turbo87 commented May 18, 2021

Reproduction

Description

Bildschirmfoto 2021-05-18 um 22 37 25

It looks like the warn(...) calls are getting compiled to Ember.warn(...) calls, which are still using the Ember global, instead of them using proper imports:

Bildschirmfoto 2021-05-18 um 22 50 43

This might be an issue in a build pipeline related project instead, but since Ember Data is the only addon where I've noticed this so far, I guess that this is a good place to track the issue for now.

Versions

Run the following command and paste the output below: yarn list ember-source && yarn list ember-cli && yarn list --pattern ember-data.

yarn list v1.22.4
warning Filtering by arguments is deprecated. Please use the pattern option instead.
└─ [email protected]
✨  Done in 0.93s.
yarn list v1.22.4
warning Filtering by arguments is deprecated. Please use the pattern option instead.
└─ [email protected]
✨  Done in 0.90s.
yarn list v1.22.4
├─ @ember-data/[email protected]
├─ @ember-data/[email protected]
├─ @ember-data/[email protected]
├─ @ember-data/[email protected]
├─ @ember-data/[email protected]
├─ @ember-data/[email protected]
├─ @ember-data/[email protected]
├─ @ember-data/[email protected]
├─ @ember-data/[email protected]
├─ [email protected]
└─ [email protected]
✨  Done in 0.93s.
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

Successfully merging a pull request may close this issue.

1 participant