Fresh install of Ember CLI app has helpers deprecation warnings


#1

Why would I be getting helper deprecation warnings with a fresh app install of Ember CLI 1.13.8? All I’ve done is ran ember new, then ember serve.

DEPRECATION: Using `Ember.HTMLBars.makeBoundHelper` is deprecated. Please refactor to using `Ember.Helper` or `Ember.Helper.helper`. [deprecation id: ember-htmlbars.make-bound-helper]
        at Object.makeBoundHelper (http://localhost:4200/assets/vendor.js:21455:32)
        at ember$inflector$lib$lib$utils$register$helper$$registerHelper (http://localhost:4200/assets/vendor.js:72053:51)
        at http://localhost:4200/assets/vendor.js:72083:5
        at http://localhost:4200/assets/vendor.js:86483:4
ember.debug.js:5459DEPRECATION: Using Ember.HTMLBars._registerHelper is deprecated. Helpers (even dashless ones) are automatically resolved. [deprecation id: ember-htmlbars.register-helper]
        at Object._emberMetalCore.default.deprecateFunc._ret.v [as _registerHelper] (http://localhost:4200/assets/vendor.js:16049:40)
        at ember$inflector$lib$lib$utils$register$helper$$registerHelperIteration3 (http://localhost:4200/assets/vendor.js:72049:40)
        at ember$inflector$lib$lib$utils$register$helper$$registerHelper (http://localhost:4200/assets/vendor.js:72059:13)
        at http://localhost:4200/assets/vendor.js:72083:5
        at http://localhost:4200/assets/vendor.js:86483:4
ember.debug.js:5459DEPRECATION: Using `Ember.HTMLBars.makeBoundHelper` is deprecated. Please refactor to using `Ember.Helper` or `Ember.Helper.helper`. [deprecation id: ember-htmlbars.make-bound-helper]
        at Object.makeBoundHelper (http://localhost:4200/assets/vendor.js:21455:32)
        at ember$inflector$lib$lib$utils$register$helper$$registerHelper (http://localhost:4200/assets/vendor.js:72053:51)
        at http://localhost:4200/assets/vendor.js:72104:5
        at http://localhost:4200/assets/vendor.js:86483:4
ember.debug.js:5459DEPRECATION: Using Ember.HTMLBars._registerHelper is deprecated. Helpers (even dashless ones) are automatically resolved. [deprecation id: ember-htmlbars.register-helper]
        at Object._emberMetalCore.default.deprecateFunc._ret.v [as _registerHelper] (http://localhost:4200/assets/vendor.js:16049:40)
        at ember$inflector$lib$lib$utils$register$helper$$registerHelperIteration3 (http://localhost:4200/assets/vendor.js:72049:40)
        at ember$inflector$lib$lib$utils$register$helper$$registerHelper (http://localhost:4200/assets/vendor.js:72059:13)
        at http://localhost:4200/assets/vendor.js:72104:5
        at http://localhost:4200/assets/vendor.js:86483:4

#2

Known problem with the current Ember Data release, it will get fixed in the next one. Please see:


#3

Cool. Thank you for the quick reply.


#4

Came here googling the deprecation errors mentioned above, fresh install too.

Also I added a default serializer and adapter, following the guides. Got two more deprecation errors:

DEPRECATION: The default behavior of shouldReloadAll will change in Ember Data 2.0 to always return false when there is at least one "pet" record in the store. If you would like to preserve the current behavior please override shouldReloadAll in your adapter:application and return true. [deprecation id: ds.adapter.should-reload-all-default-behavior]

DEPRECATION: Your custom serializer uses the old version of the Serializer API, with `extract` hooks. Please upgrade your serializers to the new Serializer API using `normalizeResponse` hooks instead. [deprecation id: ds.serializer.extract-hooks-deprecated]

Upgrading to ember-data 1.13.9 did nothing.

Seriously, this is getting ridiculous. My adventure with Ember for side projects ends up here. // end of rant


#5

Deprecation warnings are annoying, but also helpful in the sense, that you will not end up on an unpopulated software island where no one can help you.

You can manage the “deprecation spew” with https://github.com/mixonic/ember-cli-deprecation-workflow and deal with the issues one by one, while silencing the others. From what I heard on the latest http://ember.land/ podcast this workflow will get even better support from Ember.JS and the Inspector in the (hopefully not too distant) future.


#6

I was also concerned about the deprecation warnings with a fresh install via Ember CLI. Ember CLI has not yet reached 2.0. This means the versions of Ember that are specified in the application created by Ember CLI are also not 2.0. The Ember CLI installed Ember 1.13.7 instead of 2.0.2.

You can easily change that by installing 2.0 by editing the two lines in the bower.json file:

“ember”: “^2.0.0”, “ember-data”: “^2.0.0”,

Then running bower install. And entering !3 at the prompt.

This helped me run the latest version of Ember.js and also resolved the deprecation warnings. I hopes this helps someone else.


#7

Thank you for that, I noticed it had installed a pretty old version of jquery too… super helpful :wink: