Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to load module when using --prod #36

Open
abhishek-g opened this issue May 14, 2021 · 0 comments
Open

Fails to load module when using --prod #36

abhishek-g opened this issue May 14, 2021 · 0 comments

Comments

@abhishek-g
Copy link

abhishek-g commented May 14, 2021

Hi,

So i used the component to dynamically load a module , this works in my dev build , but the moment i switch it too
--prod build , this stops working and in console , i get the error that the module was not found.

Any help will be appreciated on this.

Error i am Getting
main.js?version=6.1.8.912:1 ERROR Error: Uncaught (in promise): Error: Cannot find module 'src/app/ngn/campaigns/broadcast/campaign/modules/apn-content/apn-content.module.ngfactory' Error: Cannot find module 'src/app/ngn/campaigns/broadcast/campaign/modules/apn-content/apn-content.module.ngfactory'

How i have used the component
<hero-loader *ngIf="channel === 'apn' && activeComponent === 'content'" moduleName="src/app/ngn/campaigns/broadcast/campaign/modules/apn-content/apn-content.module#ApnContentModule"></hero-loader>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant