emberjs / ember-classic-decorator

MIT License
12 stars 22 forks source link

Installing `ember-classic-decorator` "breaks" the `@ember/string` deprecation warning #107

Open boris-petrov opened 1 year ago

boris-petrov commented 1 year ago
ember new classic-decorator-bug
cd classic-decorator-bug
ember install ember-classic-decorator
ember serve

You'll see a bunch of Importing from @ember/string without having the @ember/string package in your project is deprecated. warnings in the console. They shouldn't be there as a brand-new Ember app doesn't have them. Remove ember-classic-decorator and run the app to see.

kategengler commented 1 year ago

This is the same issue as in https://github.com/emberjs/ember.js/issues/20377

There is currently no way to always get the correct (external) version of @ember/string and resolve the deprecation. That apps get the incorrect version with the install of this addon is coincidental, I believe.