Skip to content
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

Error message with new Meteor 0.4.2 #7

Open
jasonkuhrt opened this issue Oct 3, 2012 · 5 comments
Open

Error message with new Meteor 0.4.2 #7

jasonkuhrt opened this issue Oct 3, 2012 · 5 comments

Comments

@jasonkuhrt
Copy link

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
@TiuSh
Copy link

TiuSh commented Oct 7, 2012

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.

@lvbreda
Copy link
Owner

lvbreda commented Oct 7, 2012

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 .

@aprnsk
Copy link

aprnsk commented Dec 17, 2012

I see that error for meteor 0.5.2

@lvbreda
Copy link
Owner

lvbreda commented Dec 17, 2012

@aprnsk Are you using the latest version?

@aprnsk
Copy link

aprnsk commented Dec 18, 2012

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants