ng-bootstrap: 2.1.0 AOT error

Building my app with angular-cli and ng-bootstrap 2.1.0 yields

ERROR in ./node_modules/@ng-bootstrap/ng-bootstrap/datepicker/datepicker.module.js
Module not found: Error: Can't resolve './ngb-date-adapter' in 'myproject/node_modules/@ng-bootstrap/ng-bootstrap/datepicker'

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 19 (3 by maintainers)

Most upvoted comments

Hey guys, I’m having the same issue on ng-bootstrap v3.2.

Angular CLI: 6.2.1
Node: 6.14.4
OS: linux x64
Angular: 6.1.7
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

I’m getting module not found error in all of ng-bootstrap module (accordion, alert, typeahead, etc.) I’ve tried deleting my node_modules folder and clearing npm cache but the problem persist.

Am I the only one having this problem?

I completely removed my node_modules folder and reinstalled everything…no errors this time at all. All is well. Thanks!

Same here, angular 7.2.16, tried with ng-bootstrap 3.3.1 / 4.0.2 / 4.2.1.

Fixed by changing import

import {NgbDate} from "@ng-bootstrap/ng-bootstrap/datepicker/ngb-date";

to

import {NgbDate} from "@ng-bootstrap/ng-bootstrap";