ember-simple-auth icon indicating copy to clipboard operation
ember-simple-auth copied to clipboard

Uncaught (in promise) TypeError: Cannot read property 'deprecate' of undefined

Open mcfiredrill opened this issue 4 years ago • 1 comments

I tried to use the AuthenticatedRouteMixin mixin, and I got this error.

authenticated-route-mixin.js:8 Uncaught (in promise) TypeError: Cannot read property 'deprecate' of undefined
    at Module.callback (authenticated-route-mixin.js:8)
    at Module.exports (loader.js:106)
    at Module._reify (loader.js:143)
    at Module.reify (loader.js:130)
    at Module.exports (loader.js:104)
    at requireModule (loader.js:27)
    at Class._extractDefaultExport (index.js:463)
    at Class.resolveOther (index.js:123)
    at Class.resolve (index.js:186)
    at resolve (index.js:1223)

Looks like the error comes from this line:

  (true && !(false) && Ember.Ember.deprecate("Ember Simple Auth: The AuthenticatedRouteMixin is now deprecated; call the session service's requireAuthentication method in the respective route's beforeModel method instead.", false, {

mcfiredrill avatar Mar 26 '21 01:03 mcfiredrill

Hi 👋 , is this still an issue?

I believe this could've been fixed with 4.0.2 https://github.com/simplabs/ember-simple-auth/blob/master/CHANGELOG.md#402-2021-10-06

BobrImperator avatar Oct 15 '21 10:10 BobrImperator