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

Cannot read property 'setGlobalVar' of null #955

Closed
ascode opened this issue Apr 11, 2017 · 5 comments
Closed

Cannot read property 'setGlobalVar' of null #955

ascode opened this issue Apr 11, 2017 · 5 comments
Labels

Comments

@ascode
Copy link

ascode commented Apr 11, 2017

  • I'm submitting a ...
    [ *] bug report

  • What is the current behavior?
    i use npm run prebuild:prod && npm run build:prod && npm run server:prod ,then i browse http://localhost:8080,then it is broken
    this is the error log:
    Uncaught TypeError: Cannot read property 'setGlobalVar' of null
    at O (vendor.0d6cb39….bundle.js:1)
    at Object.141 (main.f4f312d….bundle.js:1)
    at n (polyfills.6792391….bundle.js:1)
    at Object.475 (main.f4f312d….bundle.js:1)
    at n (polyfills.6792391….bundle.js:1)
    at window.webpackJsonp (polyfills.6792391….bundle.js:1)
    at main.f4f312d….bundle.js:1

@alandrieu-gimel
Copy link

Same error.

@Irocode
Copy link

Irocode commented Apr 11, 2017

Prod Modus: setGlobalVar. I have the same error.

@ascode
Copy link
Author

ascode commented Apr 11, 2017

who can resolve the error,I'm a newbie of this framework.waiting...

@lexzhukov lexzhukov added the bug label Apr 11, 2017
@mathieuvalois
Copy link

Same problem here

Uncaught TypeError: Cannot read property 'setGlobalVar' of null at O (vendor.b067b1f….bundle.js:1) at Object.141 (main.ea578d8….bundle.js:1) at n (polyfills.fcb7067….bundle.js:1) at Object.475 (main.ea578d8….bundle.js:1) at n (polyfills.fcb7067….bundle.js:1) at window.webpackJsonp (polyfills.fcb7067….bundle.js:1) at main.ea578d8….bundle.js:1

Works fine with npm run build:dev

@jlberrocal
Copy link

as a workaround you can comment the line disableDebugTools() in environments.ts file

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

No branches or pull requests

7 participants