Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Build Error Angular while using build --prod #6187


User avatar
0
maharatha created

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)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi @maharatha, can you share your ANZ project version ?

  • User Avatar
    0
    maharatha created

    its the latest version in Aspnetzero 6.4. i downloaded it 2 days back

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @maharatha

    Sorry for the delay, have you solved this problem ?

    Thanks,

  • User Avatar
    0
    maharatha created

    No it didn't solve. for the time being i am compiling without --prod

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @maharatha

    Have you used navigation properties while generation those entities with RAD Tool ?

  • User Avatar
    0
    abdourahmani created

    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

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @abdourahmani

    @maharatha does that work for you ?