-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
Collection2 has no method 'callbacks' #5
Comments
Are you getting the error on the server? callbacks is only on the client, so that part of your code should only run on the client, whereas the rest of the code can and should be run on both. Wrapping that call in Also make sure that the collection2 package loads before autoform. |
Thanks, it worked when I wrapped it with |
Good. FYI, and for others who may look at this, I made a change so that there is no longer a server error. Callbacks are not used on the server, so in terms of having logical code organization, I would still recommend defining the callbacks in client code only, but it won't cause an error to put it in shared code going forward. |
…> ![null, undefined, ''].includes(x))
The code below gives me the following error message and a meteor chrash:
TypeError: Object [object Object] has no method 'callbacks' at app/lib/models.js:X:X
The text was updated successfully, but these errors were encountered: