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

TypeError: Cannot read property 'email'/'password' of undefined #484

Closed
yanickrochon opened this issue Jul 26, 2015 · 1 comment
Closed

Comments

@yanickrochon
Copy link

I have found the `{{atNavButton}}' mentioned in the documentation, and I hought "Great! I don't have to bother with this!" but using the template generate these errors :

Exception from Tracker afterFlush function:
TypeError: Cannot read property 'email' of undefined
    at AT.atInputRendered (at_input.js:4)
    at template.js:116
    at Function.Template._withTemplateInstanceFunc (template.js:437)
    at fireCallbacks (template.js:112)
    at null.<anonymous> (template.js:205)
    at view.js:104
    at Object.Blaze._withCurrentView (view.js:523)
    at view.js:103
    at Object.Tracker._runFlush (tracker.js:468)
    at onGlobalMessage (setimmediate.js:102)
Exception from Tracker afterFlush function:
TypeError: Cannot read property 'password' of undefined
    at AT.atInputRendered (at_input.js:4)
    at template.js:116
    at Function.Template._withTemplateInstanceFunc (template.js:437)
    at fireCallbacks (template.js:112)
    at null.<anonymous> (template.js:205)
    at view.js:104
    at Object.Blaze._withCurrentView (view.js:523)
    at view.js:103
    at Object.Tracker._runFlush (tracker.js:468)
    at onGlobalMessage (setimmediate.js:102)

I am using these packages :

accounts-password                 1.1.1  Password support for accounts
angular:angular2                  2.0.0-alpha.25  Angular2 repackaged for meteor.
autopublish                       1.0.3  Publish the entire database to all clients
flemay:less-autoprefixer          1.1.0  The dynamic stylesheet language + Autoprefixer
insecure                          1.0.3  Allow all database writes by default
meteor-platform                   1.2.2  Include a standard set of Meteor packages in your app
netanelgilad:angular2-typescript  0.0.3  Compile Angular2 code using Typescript compiler.
semantic:ui                       2.0.7  Official Semantic UI Integration for Meteor
tap:i18n                          1.5.1  A comprehensive internationalization solution for Meteor
tap:i18n-ui                       0.7.0  User interface for the tap-i18n package
useraccounts:semantic-ui          1.11.1  Accounts Templates styled for Semantic UI.
@splendido
Copy link
Member

Might this be the same as #367?
...actually it might be you're using the nav button without the signIn route configured and you end up redirected to an unexisting route.

Please make sure you have at least one call to

AccountsTemplates.configureRoute('signIn`);

or similar.

This should now be solved with v1.12.3 and the new useraccounts:iron-routing package...

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