Meteor_angularjs icon indicating copy to clipboard operation
Meteor_angularjs copied to clipboard

Error message with new Meteor 0.4.2

Open jasonkuhrt opened this issue 12 years ago • 5 comments

mrt create test && cd test && mrt add angularjs && mrt run

Go to browser, open console and see:

ReferenceError: Can't find variable: __meteor_runtime_config__           
url_common.js:38

jasonkuhrt avatar Oct 03 '12 03:10 jasonkuhrt

Adding these lines in server.js, right after code = code.replace("<html>",'<html ng-app="meteorapp">'); solves the problem :

if (typeof __meteor_runtime_config__ !== 'undefined') {
  code = code.replace(
    "// ##RUNTIME_CONFIG##",
    "__meteor_runtime_config__ = " +
      JSON.stringify(__meteor_runtime_config__) + ";");
}

But I don't know if it's a good solution.

TiuSh avatar Oct 07 '12 14:10 TiuSh

It is a good fix @TiuSh . The error will be fixed when I release the new version of the angularjs for Meteor. It will come soon .

lvbreda avatar Oct 07 '12 17:10 lvbreda

I see that error for meteor 0.5.2

aprnsk avatar Dec 17 '12 20:12 aprnsk

@aprnsk Are you using the latest version?

lvbreda avatar Dec 17 '12 20:12 lvbreda

yes

aprnsk avatar Dec 18 '12 14:12 aprnsk