0
Ich bekomme Probleme mit ng2-Bootstrap in Angular 2. SystemJS kann nicht Moment auf die Knoten-Module-Dir aufzulösen, beschwert es stattdessen über einen relativen Pfad.Angular2 SystemJs relativen Pfad Problem
Dies wird von einer Komponente durch einen Weg, mit Import
import { TOOLTIP_DIRECTIVES } from 'ng2-bootstrap';
Kann mir jemand helfen konstruiert verwiesen?
Vielen Dank im Voraus.
<script src="~/node_modules/systemjs/dist/system.src.js"></script>
<script src="~/node_modules/es6-shim/es6-shim.min.js"></script>
<script src="~/node_modules/angular2/bundles/angular2-polyfills.js"></script>
<script src="~/node_modules/moment/min/moment.min.js"></script>
<script src="~/node_modules/ng2-bootstrap/ng2-bootstrap.js"></script>
<script>
System.config({
defaultJSExtensions: true,
baseURL: '/ECAV.Admin/node_modules',
packages: {
'app': { format: 'register', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' }
},
paths: {
'angular2/*': 'angular2/*',
'rxjs': 'rxjs/bundles/Rx.js',
'linqsharp': 'linqsharp/built/linqsharp',
'highcharts': 'highcharts',
'ng2-highcharts': 'ng2-highcharts/ng2-highcharts',
'lodash': 'lodash/lodash',
'ng2-bootstrap':'ng2-bootstrap/ng2-bootstrap'
},
map: {
moment: 'moment/moment.js'
}
});
</script>
<script src="~/node_modules/rxjs/bundles/Rx.js"></script>
<script src="~/node_modules/angular2/bundles/angular2.dev.js"></script>
<script src="~/node_modules/lodash/lodash.js"></script>