devyumao / angular2-busy

Show busy/loading indicators on any promise, or on any Observable's subscription.
http://devyumao.github.io/angular2-busy/demo/asset/
MIT License
314 stars 102 forks source link

Error on fetch: node_modules/angular2-dynamic-component/index #10

Closed damoncasale closed 7 years ago

damoncasale commented 8 years ago

Error on fetch: node_modules/angular2-dynamic-component/index

I get this compile error when attempting to use angular2-busy. I checked and noticed that angular2-dynamic-component isn't even a dependency.

devyumao commented 8 years ago

Maybe your npm version did not install the secondary dependencies in a flat way, and you may install them manually:

npm install --save ts-metadata-helper@0.0.3
npm install --save angular2-dynamic-component@0.0.50
damoncasale commented 8 years ago

After those two dependencies, there was another dependency on core-js/es7/Reflect, and I gave up and reverted to 1.0.1 which works fine.

devyumao commented 8 years ago

Sorry for the missing of the system.config.js introduction. The README has been updated.

corner22 commented 8 years ago

I had a similar problem with 1.0.2 and resolved by adding the missing info from system.config.js. like damoncasale, I then also got 404 errors with core-js (mine was actually core-js/es6/reflect). I installed 1.0.1 and it now works fine for me too.

bravenewworlds commented 8 years ago

I've got the same behaviour ts-metadata-helper and angular2-dynamic-component are resolved, but "reflect" is not:

error

UPD: I made it (v. 1.0.2) work when added this to systemjs.config.js

map: { 
...
'core-js': 'npm:core-js' ,
}
...
packages: {
...
'core-js': { defaultExtension: 'js' },
}
devyumao commented 7 years ago

Now the module does not rely on angular2-dynamic-component any more.