Ngx-bootstrap: Error when importing BsDatepickerModule.forRoot() on angular9.rc

Created on 3 Jan 2020  路  4Comments  路  Source: valor-software/ngx-bootstrap

I' am getting the following error when using the Date Picker module in the new version of angular

Symbol BsDaterangepickerInlineContainerComponent declared in /node_modules/ngx-bootstrap/datepicker/themes/bs/bs-daterangepicker-inline-container.component.d.ts is not exported from ngx-bootstrap

comp(build) comp(datepicker)

Most helpful comment

I could work around this by importing BsDatepickerModule from ngx-bootstrap/datepicker instead of ngx-bootstrap.

import {BsDatepickerModule} from 'ngx-bootstrap/datepicker';

For me that worked, but should be fixed in the library anyway.

All 4 comments

I could work around this by importing BsDatepickerModule from ngx-bootstrap/datepicker instead of ngx-bootstrap.

import {BsDatepickerModule} from 'ngx-bootstrap/datepicker';

For me that worked, but should be fixed in the library anyway.

I could work around this by importing BsDatepickerModule from ngx-bootstrap/datepicker instead of ngx-bootstrap.

import {BsDatepickerModule} from 'ngx-bootstrap/datepicker';

For me that worked, but should be fixed in the library anyway.

At least fix the documentation, only one import works.

I think, that was updated in https://github.com/valor-software/ngx-bootstrap/pull/5663 and in next release docs will contain information, about not using old kind of imports with NG9

Was this page helpful?
0 / 5 - 0 ratings