Ngx-bootstrap: Build error with 5.6.1 version

Created on 16 Apr 2020  路  5Comments  路  Source: valor-software/ngx-bootstrap

I have installed ngx-bootstrap version in my project version "^5.4.0". My colleague took repository and executed npm install. The ngx-bootstrap package with 5.6.1 version downloaded. When he build project he got error "Cannot find module 'ngx-bootstrap' ".

can be closed?

Most helpful comment

You have a breaking change associated with a minor version. This should be fixed.

All 5 comments

You need to import modules as
import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';
and not

import { BsDatepickerModule } from 'ngx-bootstrap';

You have a breaking change associated with a minor version. This should be fixed.

Yeah, I assume, that was fixed, and 5.6.2 should be without that.

This will break MANY packages. There should be really good reasons for it.

fixed in v6

Was this page helpful?
0 / 5 - 0 ratings