Ngx-admin: Cannot read property 'setGlobalVar' of null

Created on 11 Apr 2017  Â·  5Comments  Â·  Source: akveo/ngx-admin

  • 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

bug

Most helpful comment

Prod Modus: setGlobalVar. I have the same error.

All 5 comments

Same error.

Prod Modus: setGlobalVar. I have the same error.

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tal-shahar picture tal-shahar  Â·  3Comments

maxlein picture maxlein  Â·  3Comments

burtonator picture burtonator  Â·  3Comments

nfdavenport picture nfdavenport  Â·  3Comments

mignam picture mignam  Â·  3Comments