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

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

Open
mcfiredrill opened this issue Mar 26, 2021 · 1 comment

Comments

@mcfiredrill
Copy link
Contributor

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, {
@BobrImperator
Copy link
Collaborator

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

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

No branches or pull requests

2 participants