akserg / ng2-slim-loading-bar

Angular 2 component shows slim loading bar at the top of the page.
MIT License
358 stars 93 forks source link

Angular 4 - Cannot read property 'Injectable' of undefined #49

Closed susonwaiba closed 7 years ago

susonwaiba commented 7 years ago

VM7584:237 Uncaught TypeError: Cannot read property 'Injectable' of undefined at eval (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:237:74) at Object.module.exports (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:241:2) at __webpack_require__ (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:30:30) at Object.__webpack_exports__.a (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:257:84) at __webpack_require__ (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:30:30) at Object.eval (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:359:90) at __webpack_require__ (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:30:30) at eval (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:76:18) at eval (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:79:10) at webpackUniversalModuleDefinition (eval at webpackJsonp.18.module.exports (addScript.js:9), <anonymous>:9:34)

Line no 237: webpack_require.i(WEBPACK_IMPORTED_MODULE_0angular_core__["Injectable"])(), this line has a problem how to fix it.? I am using angular 4 a

altschuler commented 7 years ago

Are you sure that this is related to ng2-slim-loading-bar?

susonwaiba commented 7 years ago

Sorry, My bad. there was error while adding index.umd.js file according to doc. But even without index.umd.js file it works fine.