-
-
Notifications
You must be signed in to change notification settings - Fork 85
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: Object #<Object> has no method 'on' #15
Comments
Check history: I would also recommend just putting |
i can see that the package i have is 0.2.0 when i run mrt :
this is confirmed by packages/user-status/smart.json
i did mrt remove user-status then maybe atmosphere was out of sync when i did mrt add ? |
Copy/paste from console.log for JSON.stringify(advice) -> thanks for the review ! |
I don't understand your last comment - do you still have a problem or is it fixed? I suggest you update to newer versions if possible; we are taking advantage of improved connection handling in newer versions of Meteor. See meteor/meteor#1769. |
it's fixed but i don't know why i was in 0.2.0 ! |
user-status Looking for an example in the tests, i've tryed this
But there is still TypeError: Cannot call method 'on' of undefined ??? if i look in the console, UserStatus has only the server side functions (defined in monitor.coffee) not the one of status.coffee : events and connections. |
You can't use |
Ok moved to server side , works fine -> Why in package.js : api.export('UserStatus'); // on both then ? |
|
Thank you, perhaps clarify the documentation on what is available on client and server side for the same UserStatus. |
Yes, good idea. I will certainly do that. |
When i launch mrt, i have the following error :
Here is the code snippet in Accounts.js
mrt --version
Meteorite version 0.7.2
Release 0.7.1.2
smart.json
.meteor/packages
Was working fine until i add the roles package ...
mrt test-packages user-status works fine - all green.
The text was updated successfully, but these errors were encountered: