Hello - I am trying to build my app for deployment onto Azure.
I am working thru the steps here: Step by Step publish to Azure
My code compiles fine locally to run/test on localhost.
the ng build --prod fails with multiple messages like:
Cannot determine the module for class UserLookupTableModalComponent in C:/Users/Roger Coville/source/repos/RES/src/RES.Web.Host/src/app/main/datat/resSubTasks/user-lookup-table-modal.component.ts! Add UserLookupTableModalComponent to the NgModule to fix it.
I have other screens that lookup Users in the system. These modals however look up multiple users. Meaning someone "OWNS" the task - Someone else "COMPLETED" the task, etc.
Any thoughts on what could cause the build to fail only with --prod?
Thank you
2 Answer(s)
-
0
Hi @rcoville
Have you added user-lookup-table-modal.component.ts component to your main module ? Similar to this one https://github.com/aspnetzero/aspnet-zero-core/blob/master/angular/src/app/shared/common/app-common.module.ts#L48 ?
-
0
closing due to inactivity.