1

In my development environment, I can run Meteor.call('method.name') in the browser console to call server methods. However, this doesn't work in production since the code is minified. I get Meteor is not defined.

Is there a workaround? I tried Package.meteor since the minified code referenced that but it didn't work either.

Thanks!

simon.d
  • 2,471
  • 3
  • 33
  • 51

1 Answers1

1

Probably you have a wrong execution context set. Take a look at the difference between two screenshots below. Both taken on the same production app with the code minified.

Console screenshot with no error Console screenshot with error


More information about what the execution context is: Chrome Dev Tools: <page context> and <top frame>?

Community
  • 1
  • 1
Minderov
  • 521
  • 1
  • 5
  • 20