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
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.
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