You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(To verify its not my app, I found another cli lazy loading app at angular/angular-cli#2865. Downloaded NotLazyLoading.zip from that issue, fixed the typo in app-routing.module.ts as described there, verified lazy loading works. Added ng2-bootstrap as above, now only 1 bundle created)
Looks like this is an angular-cli issue. See angular/angular-cli#2496 (comment) having import * as moment in your code or any imported library currently breaks lazy loading. ng2-bootstrap has this for datepicker module.
Workaround for all but date picker is to import individual modules only e.g. import { AlertModule } from 'ng2-bootstrap/components/alert'; instead of import { AlertModule } from 'ng2-bootstrap/ng2-bootstrap';
Uh oh!
There was an error while loading. Please reload this page.
Have an angular-cli app that has lazy loading working. Add an alert to it as described in readme https://github.com/valor-software/ng2-bootstrap/blob/development/docs/getting-started/ng-cli.md. Lazy loading stops working. Only one bundle is created.
(To verify its not my app, I found another cli lazy loading app at angular/angular-cli#2865. Downloaded NotLazyLoading.zip from that issue, fixed the typo in app-routing.module.ts as described there, verified lazy loading works. Added ng2-bootstrap as above, now only 1 bundle created)
See also angular/angular-cli#2967
The text was updated successfully, but these errors were encountered: