javascript - Simple #meteor subscribe call giving an error -


server :

meteor.publish('trades', function() { return trades.find(); }); 

client:

meteor.subscribe("trades"); 

both:

trades = new meteor.collection('trades'); 

when run meteor, giving me

typeerror: object # has no method 'subscribe'

any suggestions?

you might have client code running in root directory /. execute on server , give error. (not sure if this).


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -