shlomiassaf / ng-router-loader

Webpack loader for NgModule lazy loading using the angular router
MIT License
46 stars 8 forks source link

@ngtools/webpack support? #4

Closed unsafecode closed 7 years ago

unsafecode commented 7 years ago

Does it work with @ngtools/webpack? So far I only get the following error:

ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function

Which actually matches with AoT rules for function exports.

Any tip or recommendation?

shlomiassaf commented 7 years ago

@ngtools/webpack comes with an internal lazy routing loader that does the same thing as ng-router-loader

If you compile with @ngtools/webpack you can't user this loader for AOT.

unsafecode commented 7 years ago

@shlomiassaf OK, thanks. Was asking since @ngtools/webpack now has issues dealing with lazy loading