Lazy loading doesn't seem to be working #504

Closed
opened 2025-08-09 17:16:32 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @frederikprijck on 8/15/2017

Hi,

I've been looking into ASP.NET Core 2.0 and the Angular template available in VS 2017.
A fresh install works fine, but it looks like there's no example using lazy-loading.

I wanted to try implement it based on 7ded0a0b60 .
In order to do so I've created a repository (using the default starter from VS2017) and added the following commit: 0edaa0889e

Note: I've disabled development build to ensure @ngtools/webpack was used.

Running the project available in the repository (https://github.com/frederikprijck/aspnet-angular-lazy-loading) results in the following error when navigating to counter.

Error: Uncaught (in promise): Error: Cannot find module './components/counter/counter.module.ngfactory'.
Error: Cannot find module './components/counter/counter.module.ngfactory'.
at webpackEmptyContext

Does the template require more changes in order to enable Lazy Loading?

Thanks

*Originally created by @frederikprijck on 8/15/2017* Hi, I've been looking into ASP.NET Core 2.0 and the Angular template available in VS 2017. A fresh install works fine, but it looks like there's no example using lazy-loading. I wanted to try implement it based on https://github.com/aspnet/JavaScriptServices/commit/7ded0a0b60ce3a5356417a5d6102a376fe5f6802 . In order to do so I've created a repository (using the default starter from VS2017) and added the following commit: https://github.com/frederikprijck/aspnet-angular-lazy-loading/commit/0edaa0889e1084dfad47d1674641b86c0e45332c Note: I've disabled development build to ensure `@ngtools/webpack` was used. Running the project available in the repository (https://github.com/frederikprijck/aspnet-angular-lazy-loading) results in the following error when navigating to `counter`. > Error: Uncaught (in promise): Error: Cannot find module './components/counter/counter.module.ngfactory'. Error: Cannot find module './components/counter/counter.module.ngfactory'. at webpackEmptyContext Does the template require more changes in order to enable Lazy Loading? Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#504
No description provided.