Closed gspeedtech closed 5 years ago
@gspeedtech you should try a new ngx-bootstrap version - 3.1.1 (we have an example using with system.js here and if something goes wrong please provide a reproduction of this issue. You can use one of these templates: Plunkr: https://plnkr.co/edit/0NipkZrnckZZROAcnjzB?p=preview StackBlitz: https://stackblitz.com/edit/ngx-bootstrap-hkm8pi?file=app/app.module.ts
I have successfully implemented ngx-bootstrap/datepicker in an angular 5 app. But when I try to use the same component and same configuration in myAsp.Net MVC withAngular app, I get the following error.
Error: Fetch error: 404 Not Found Instantiating http://localhost:xxxxx/node_modules/ngx-bootstrap/datepicker.js
It appears to be trying to find datepicker.js which does not exist.
I have tried adding the following to systemjs.config.js
'ngx-bootstrap/datepicker': { main: 'index.js', defaultExtension: 'js' },
And I get this error:
Error: Unable to dynamically transpile ES module A loader plugin needs to be configured via
SystemJS.config({ transpiler: 'transpiler-module' })
. Instantiating http://localhost:xxxxx/node_modules/ngx-bootstrap/datepicker/index.jsI have tired other variations like: main: 'datepicker.component.js, main: 'bs-datepicker.js, main: 'datepicker.module.js, etc.. They all result in the same transpile error.
This is my Systemjs.config.js
Any suggestions on how to resolve this would be greatly appreciated.