ng 10 Warning: Unable to fully load

Bug description:

When building I got a lot of warnings

Warning: Unable to fully load /node_modules/@ng-bootstrap/ng-bootstrap/timepicker/timepicker-config.d.ts for source-map flattening: Circular source file mapping dependency: /node_modules/@ng-bootstrap/ng-bootstrap/timepicker/timepicker-config.d.ts.map
/node_modules/@ng-bootstrap/ng-bootstrap/timepicker/timepicker-config.d.ts.map
Warning: Unable to fully load /node_modules/@ng-bootstrap/ng-bootstrap/timepicker/ngb-time-adapter.d.ts for source-map flattening: Circular source file mapping dependency: /node_modules/@ng-bootstrap/ng-bootstrap/timepicker/ngb-time-adapter.d.ts.map -> /node_modules/@ng-bootstrap/ng-bootstrap/timepicker/ngb-time-adapter.d.ts.map

Link to minimally-working StackBlitz that reproduces the issue:

Versions of Angular, ng-bootstrap and Bootstrap:

Angular: 10.0.8

ng-bootstrap: 7.0.0

Bootstrap: 4.5.1

1 possible answer(s) on “ng 10 Warning: Unable to fully load

  1. This happened to me with a library I published when I consumed it in another app. All the components warned of a circular dependency on themselves. It looks like it was an issue with the compiler interacting with node_modules. Deleting node_modules and package-lock.json then verify cache and reinstalling seems to have fixed it.

    rm -rf node_modules
    rm package-lock.json
    npm cache verify
    npm install