jeudi 9 février 2017

Do I need to define SystemJS configurations for all packages referenced by an Angular2 module that I'm importing?

Vote count: 0

I'm trying to use ng2-jsoneditor in an Angular2 app + SystemJS. When I try to import the module, I need to add to system.config.js to tell it where and how to load a package. And I find that I need to do that for every package that is referenced by that module and its dependencies. And I still haven't finished adding configurations for more packages.

My question: Is this expected when including a 3rd party package using SystemJS? That I would need to manually add configurations for every package that is referenced in that 3rd party package that I'm trying to import?? Shouldn't the module component itself (as a npm package) be self-contained and knows how to load its dependencies??

asked 1 min ago

Let's block ads! (Why?)



Do I need to define SystemJS configurations for all packages referenced by an Angular2 module that I'm importing?

Aucun commentaire:

Enregistrer un commentaire