Ngx-bootstrap: ng2-bootstrap/index"' has no exported member 'DropdownModule and not using Angular-CLI

Created on 10 Apr 2017  路  5Comments  路  Source: valor-software/ngx-bootstrap

I upgraded to Angular 4.0.1 and it broke ng2:

package.json:

"dependencies": {
    "@angular/animations": "^4.0.1",
    "@angular/common": "^4.0.1",
    "@angular/compiler": "^4.0.1",
    "@angular/core": "^4.0.1",
    "@angular/forms": "^4.0.1",
    "@angular/http": "^4.0.1",
    "@angular/platform-browser": "^4.0.1",
    "@angular/platform-browser-dynamic": "^4.0.1",
    "@angular/router": "^4.0.1",
    "@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.22",
    "X-editable": "github:vitalets/x-editable",
    "angular-in-memory-web-api": "^0.3.1",
    "angular-tree-component": "^3.2.4",
    "bootstrap": "^3.3.7",
    "bootstrap-colorpicker": "^2.5.1",
    "bootstrap-duallistbox": "github:istvan-ujjmeszaros/bootstrap-duallistbox",
    "bootstrap-markdown": "^2.10.0",
    "bootstrap-progressbar": "^0.9.0",
    "bootstrap-slider": "^9.7.3",
    "bootstrap-tagsinput": "^0.7.1",
    "bootstrap-timepicker": "^0.5.2",
"ng-bootstrap": "^1.6.3",
    "ng2-bootstrap": "1.6.3",
    "ng2-bs3-modal": "^0.10.4",
    "ng2-filter-pipe": "^0.1.7",
    "ng2-material-dropdown": "^0.7.7",
    "ng2-popover": "0.0.14",
    "ng2-redux": "5.1.2",
    "nouislider": "^9.2.0",
    "primeng": "^4.0.0-rc.2",
    "raphael": "^2.2.7",
    "redux": "^3.6.0",
    "rxjs": "^5.3.0",
    "scriptjs": "^2.5.8",
    "select2": "^4.0.3",
    "smartadmin-plugins": "^1.0.17",
    "summernote": "^0.8.3",
    "to-markdown": "^3.0.4",
    "ts-helpers": "^1.1.1",
    "webpack": "^2.3.3",
    "zone.js": "^0.8.5"

Error:

node_modules/ng2-bootstrap/index"' has no exported member 'DropdownModule'.

This was reported in 2016 but I have not seen a solution for the recent update and I am not using CLI just webpack.

Most helpful comment

Try BsDropdownModule.
For Ng4 you might also want to use [email protected] instead of ng2-bootstrap

All 5 comments

Try BsDropdownModule.
For Ng4 you might also want to use [email protected] instead of ng2-bootstrap

@ctrl-brk BsDropdownModule worked

Pay attention to breaking changes for dropdown in change log,especially to *dropdownMenu and classes

@valorkin I believe (at least in my case) the assumption that the project follows semantic versioning (http://semver.org/). A minor version bump should not introduce API breaking changes. If there's no interest in bumping the major version to rectify this error, I would suggest at least adding a disclaimer on the README (or in the troubleshooting section). Otherwise, thanks for support in issues.

please try BsDropdownModule as declared in index.js of ng-bootstrap packege

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghiscoding picture ghiscoding  路  3Comments

KimBum picture KimBum  路  3Comments

RolfVeinoeSorensen picture RolfVeinoeSorensen  路  3Comments

ctrl-brk picture ctrl-brk  路  3Comments

tpiros picture tpiros  路  3Comments