I get the below error when i build angular in prod mode :
2018-12-21T03:23:51.0766403Z
2018-12-21T03:23:51.0767160Z ERROR in : Cannot determine the module for class AssetFieldLookupTableModalComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/assetField-lookup-table-modal.component.ts! Add AssetFieldLookupTableModalComponent to the NgModule to fix it.
2018-12-21T03:23:51.0767824Z Cannot determine the module for class TemplateLookupTableModalComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/template-lookup-table-modal.component.ts! Add TemplateLookupTableModalComponent to the NgModule to fix it.
2018-12-21T03:23:51.0767992Z
2018-12-21T03:23:51.0768324Z Cannot determine the module for class CreateOrEditAssetFieldTemplateMappingModalComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/create-or-edit-assetFieldTemplateMapping-modal.component.ts! Add CreateOrEditAssetFieldTemplateMappingModalComponent to the NgModule to fix it.
2018-12-21T03:23:51.0768664Z Cannot determine the module for class ViewAssetFieldTemplateMappingModalComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/view-assetFieldTemplateMapping-modal.component.ts! Add ViewAssetFieldTemplateMappingModalComponent to the NgModule to fix it.
2018-12-21T03:23:51.0769155Z Cannot determine the module for class AssetFieldTemplateMappingsComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/assetFieldTemplateMappings.component.ts! Add AssetFieldTemplateMappingsComponent to the NgModule to fix it.
It works in non prod build.
All i have created is using the RAD Tool.
7 Answer(s)
-
0
Hi @maharatha, can you share your ANZ project version ?
-
0
its the latest version in Aspnetzero 6.4. i downloaded it 2 days back
-
0
Hi @maharatha
Sorry for the delay, have you solved this problem ?
Thanks,
-
0
No it didn't solve. for the time being i am compiling without --prod
-
0
Hi @maharatha
Have you used navigation properties while generation those entities with RAD Tool ?
-
0
Hi @maharata,
I had this error. It just means that the component (for example AssetFieldLookupTableModalComponent ) is duplicated and the linker is unable to chose one of them.
To solve my problems, I created a folder under "shared" directory where I move one copy of the duplicated components and delete others.
Hope this can you.
Happy new year
Abdourahmani
-
0
Thanks @abdourahmani
@maharatha does that work for you ?