I want to use the following NPM package with Angular CLI: ng2-ui
The implementation guide for SystemJS, not Webpack, is used by the Angular CLI, which I should use in this project.
What have I already done?
At this point, I had not used it Ng2UIModulein any of the components, and the application worked perfectly before performing the indicated operations.
When I try to run the application ng serve, I get the following error in the console:
ERROR in [default] C:\tools\test-package.net\node_modules\ng2-ui\dist\index.d.ts:1:31
Cannot find module 'ng2-overlay'.
ERROR in [default] C:\tools\test-package.net\node_modules\ng2-ui\dist\index.d.ts:2:32
Cannot find module 'ng2-map'.
ERROR in [default] C:\tools\test-package.net\node_modules\ng2-ui\dist\index.d.ts:3:60
Cannot find module 'ng2-popup'.
ERROR in [default] C:\tools\test-package.net\node_modules\ng2-ui\dist\index.d.ts:4:39
Cannot find module 'ng2-scrollable'.
I assume that the following settings are simply missing from the application systemjs.config.js:
map['ng2-ui'] = 'node_modules/ng2-ui/dist';
packages['ng2-ui'] = {main: 'ng2-ui.umd.js', defaultExtension: 'js'}
, Angular CLI Webpack...
( Angular CLI 1.0.0-beta.17)
!