Closed davinkevin closed 6 years ago
Same problem with me .
Its due to the below reason.
The library is not able to import HttpModule and neither HttpClientModule
Just came accross this.
To fix the problem add the ff line in
/playground/systemjs.config.js
// under angular bundles
'@angular/common/http': 'npm:@angular/common/bundles/common-http.umd.js',
'tslib': 'npm:tslib/tslib.js',
Thank you @markpenaranda
Hello,
If I want to use inside my service the new
httpClient
from angular located in the package@angular/common/http
, I get multiple errors, especially one linked totslib
My service looks like this :
And my
systemjs-config.js
:I've added to this config the two following lines to enable the system to fetch those lib :
/cc @Neonox31
Thanks for your help