manfredsteyer / ngx-build-plus

Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
1.19k stars 136 forks source link

Angular canLoad implemented on lazy loaded module is not working with ngx-build-plus #381

Closed alphonsejayapal closed 1 year ago

alphonsejayapal commented 1 year ago

I have an anugular 14 app which was using canLoad to guard a lazy loaded module. It was working as expected with @angular-devkit/build-angular. Then I added ng add @angular-architects/module-federation@14.3.14 --project mainapp --port 5000 to this app. So along with that ngx-build-plus also added. Now this angular canLoad guard is not working

alphonsejayapal commented 1 year ago

I created another sample app and followed the above steps and CanLoad works fine. The above may be a app specific issue. So let me try to find the root cause and fix it.