Error:Meteor.publish() is not a function (only on deployed app)

Hey guys.

I have deployed an app that is working perfectly on my local machine to digitalocean using meteor-up. Randomly however, when I look in the console. the deployed app is outputting the error “Meteor.publish() is not a function”.

Of course the deployed app is also broken (i.e. not displaying any data form the database).

What could be the issue?

p.s. I am using angular for the front end.

url : http://104.131.40.60:3000/

Solved the issue. Wrapped the Meteor.publish() function in a Meteor.isServer){}.

1 Like

I have the same mistake. I try the same thing but i always have the problem with meteor.publish and with the splash page of iron router…

Help me please :smile: