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 TypeError: Cannot read property 'options' of undefined #55

Open
brylie opened this issue Sep 3, 2015 · 5 comments
Open

Uncaught TypeError: Cannot read property 'options' of undefined #55

brylie opened this issue Sep 3, 2015 · 5 comments

Comments

@brylie
Copy link

brylie commented Sep 3, 2015

When adding an afModal, I get the following error:

Uncaught TypeError: Cannot read property 'options' of undefined modals.coffee:170

I copied the modal snippet directly from the README, and only changed the collection name.

{{#afModal class="btn btn-primary" collection="Posts" operation="insert"}}
    Add a new post
{{/afModal}}
@rafaelcorreiapoli
Copy link

+1
Are you using Meteor 1.2 too ?

@rafaelcorreiapoli
Copy link

Oh, fixed! don't forget to add {{> autoformModals}}

@Amritpd
Copy link

Amritpd commented Jun 29, 2016

Where exactly are you supposed to put {{> autoformModals }}? I am still getting the same error.

@brylie
Copy link
Author

brylie commented Jun 29, 2016

You can put {{> autoformModals }} in your layout template, for example. Basically, it needs to be part of whatever template or layout that is rendered when you want to display the modal.

@DataMkP
Copy link

DataMkP commented Jul 26, 2016

Thanks for the tip, I've done the same mistake

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

4 participants