To use ng2-boostrap, simply install the modules from NPM:
$ npm install ng2-bootstrap ng2-select
You can then configure them in your HTML entry file:
<script>
System.configure({
map: {
'ng2-bootstrap': 'node_modules/ng2-bootstrap',
'ng2-select': 'node_modules/ng2-select'
},
packages: {
(...)
}
});
System.import(...);
</script>
You have the problem since a module can't be imported. Around your error, you should see what SystemJS tries to load something...
Edit
Following your answer, it appears that you need to configure moment:
<script>
System.configure({
map: {
(...)
'moment': 'node_modules/moment/moment'
},
(...)
});
</script>
See this question for more details:
this what i found in console after i add moment
Error: Unexpected token <(…)Zone.run @ angular2-polyfills.js:1243zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451lib$es6$promise$$internal$$publishRejection @ angular2-polyfills.js:401(anonymous function) @ angular2-polyfills.js:123Zone.run @ angular2-polyfills.js:1243zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
the first problem has been solved when i write systemjs config but i did copied some files from my app folder to node_modulessystemjsdist it's all the files with extension "*.js.map" i don't understand why it doesnt load it by itself and in my command window it tells me that 404 GET *****.js.map ???? have you an idea?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…