question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular: Lazy-loaded modules do not work

See original GitHub issue

When I try to lazy-load a module using loadChildren in a route config, StackBlitz fails.

See example: https://stackblitz.com/edit/angular-lazy-loading?file=app%2Fapp.module.ts

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
EricSimonscommented, Oct 6, 2017

@LayZeeDK I know how to fix it! I’ll get a fix in for this early next week 😃

4reactions
EricSimonscommented, Sep 7, 2017

Good catch — we haven’t added lazy loading in yet 😅 I’ll start digging into this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 8 - Lazy Loading of Module not working
The student module needs to use .forChild() when declaring routes since it is a child module. const routes:Routes = [ { path ...
Read more >
Lazy-loading feature modules - Angular
You can verify that a module is indeed being lazy loaded with the Chrome developer tools. In Chrome, open the developer tools by...
Read more >
Why is Angular Lazy loading and routing not working after ...
In my application , lazy loading was perfectly working in Angular 4 and 5 . However , after I migrated to Angular 6...
Read more >
Angular Lazy Loading — Not Only For The Lazy
Lazy Loading Modules in Angular​​ Angular doesn't support lazy variables natively but it supports the lazy loading modules, which are way more ...
Read more >
Manually Lazy Load Modules And Components In Angular
The loadLazyModules method simulates a backend request. After a successful request, a module is registered using the import(...) syntax. If you now run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found