Ember Global deprecation warning due to old version of ember-cli-babel
rahulk94 opened this issue · comments
Environment
- Ember Version: 3.28
- Ember CLI Version: 3.28
- Ember CP Validations Version: 4.0.0-beta.12
Steps to Reproduce
Install Ember CP Validations in to a freshly generated 3.28.x Ember application and run ember serve. A deprecation warning is displayed in your logs like so
➜ ember328app git:(master) ✗ ember s --port 3001
WARNING: [DEPRECATION] [DEPRECATION] Usage of the Ember Global is deprecated. You should import the Ember module or the specific API instead.
See https://deprecations.emberjs.com/v3.x/#toc_ember-global for details.
Usages of the Ember Global may be caused by an outdated ember-cli-babel dependency. The following steps may help:
* Upgrade the following addons to the latest version:
* ember-cp-validations
### Important ###
In order to avoid repeatedly showing the same deprecation messages, no further deprecation messages will be shown for usages of the Ember Global until ember-cli-babel is upgraded to v7.26.6 or above.
To see all instances of this deprecation message, set the `EMBER_GLOBAL_DEPRECATIONS` environment variable to "all", e.g. `EMBER_GLOBAL_DEPRECATIONS=all ember test`.
### Details ###
Prior to v7.26.6, ember-cli-babel sometimes transpiled imports into the equivalent Ember Global API, potentially triggering this deprecation message indirectly, even when you did not observe these deprecated usages in your code.
The following outdated versions are found in your project:
* ember-cli-babel@6.18.0, currently used by:
* ember-maybe-import-regenerator@0.1.6 (Dormant)
* Depends on ember-cli-babel@^6.0.0-beta.4
* ember-require-module@0.3.0
* Depends on ember-cli-babel@^6.9.2
* Added by ember-cp-validations@4.0.0-beta.12
* Added by ember-cp-validations@4.0.0-beta.12 > ember-validators@3.0.1
* ember-validators@3.0.1
* Depends on ember-cli-babel@^6.9.2
* Added by ember-cp-validations@4.0.0-beta.12
Note: Addons marked as "Dormant" does not appear to have any JavaScript files. Therefore, even if they are using an old version ember-cli-babel, they are unlikely to be the culprit of this deprecation and can likely be ignored.
I understand this repository does not appear to be maintained anymore so primarily raising this for visibility.
@offirgolan any plans to upgrade addon?
I am also running into the same issue. Does anyone have a workaround for this? @offirgolan will this addon be upgraded?
@rahulk94 @AmilKey @RosarioAleCali that should be fixed in the new beta release.
I'm closing this. Feel free to reopen if there are still problems.