Q: Error: (SystemJS) Cannot read property 'forRoot' of undefined Hi I want to use a datepicker of ngx-bootstrap in my angular 2 project here is the code:
// or
import { BsDatepickerModule } from 'ngx-bootstrap';

 @NgModule({
   imports: [BsDatepickerModule.forRoot(),...]
})
export class AppModule(){}

SystemJS version: 0.19.40
system.js config file:
 'ngx-bootstrap': { format: 'cjs', main: 'bundles/ngx-bootstrap.umd.js', defaultExtension: 'js' },

But it give me this error:

trajet:64 Error: (SystemJS) Cannot read property 'forRoot' of undefined, could i have your help please??

