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

"Exception from Tracker afterFlush function" with any bootstrap, ionic... #367

Closed
Grabber opened this issue Apr 27, 2015 · 4 comments
Closed

Comments

@Grabber
Copy link

Grabber commented Apr 27, 2015

I'm posting it at core package because the issue is happening with bootstrap, ionic packages (I've not tested with the other variants).

Replicating the scenario

meteor create your_project
cd your_project

meteor add useraccounts:ionic
OR
meteor add useraccounts:bootstrap

Error messages

Exception from Tracker afterFlush function:
debug.js:41 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. (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)
debug.js:41 Exception from Tracker afterFlush function:
debug.js:41 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. (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)
debug.js:41 Exception from Tracker afterFlush function:
debug.js:41 TypeError: Cannot read property 'password_again' 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. (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)

@splendido
Copy link
Member

Following your instructions (both bootstrap and ionic), the only error I get on the server is
Error: AccountsTemplates: You must add at least one account service!
which is letting you know you need to add some other package to get the accounting system works.

If I also run meteor add accounts-password I get no errors on the server and on the client I see the usual empty sample app.

Are you getting the error on a more complex project?

@Foutchy
Copy link

Foutchy commented Jun 3, 2015

Got the same error, when using iron router and calling a page that doesn't exist with a notFound template. Otherwise it works without errors.

@splendido
Copy link
Member

This is the line signaled in the error.
This becomes Router.current().params.query['email'], Router.current().params.query['password'], Router.current().params.query['password_again'], etc.
The only thing I can think about is something wrong with IR not exposing the query field for the current Controller under some particular circumstances.

The purpose for that line is getting links like this one be used to pre-fill the form inputs.

@splendido splendido removed the invalid label Jun 13, 2015
splendido added a commit to meteor-useraccounts/iron-routing that referenced this issue Aug 21, 2015
@splendido
Copy link
Member

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

3 participants