Base solution for your next web application
Open Closed

Angular want to publish to production, but it's have error. #5533


User avatar
0
lailai487 created

When I use "ng build --prod" command, it's have error message.

ERROR in : Cannot determine the module for class CreateOrEditGameProductModalComponent in C:/Users/kris-w10/Desktop/mobcat/CatTree-Front-End/src/app/main/Game/gameProducts/create-or-edit-gameProduct-modal.component.ts! Add CreateOrEditGameProductModalComponent to the NgModule to fix it. Cannot determine the module for class ViewGameProductModalComponent in C:/Users/kris-w10/Desktop/mobcat/CatTree-Front-End/src/app/main/Game/gameProducts/view-gameProduct-modal.component.ts! Add ViewGameProductModalComponent to the NgModule to fix it. Cannot determine the module for class GameProductsComponent in C:/Users/kris-w10/Desktop/mobcat/CatTree-Front-End/src/app/main/Game/gameProducts/gameProducts.component.ts! Add GameProductsComponent to the NgModule to fix it.

anyone can help me? Thank you.


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Can you try it out according to the error message?

    Add CreateOrEditGameProductModalComponent to the NgModule to fix it. Add ViewGameProductModalComponent to the NgModule to fix it. Add GameProductsComponent to the NgModule to fix it.

  • User Avatar
    0
    lailai487 created

    I don't know how to do that.... I'm an Angular beginner :(

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    There might be many reasons for this problem. Could you first check this issue <a class="postlink" href="https://github.com/angular/angular-cli/issues/8062">https://github.com/angular/angular-cli/issues/8062</a> ? Your problem might be similar to <a class="postlink" href="https://github.com/angular/angular-cli/issues/8062#issuecomment-388953262">https://github.com/angular/angular-cli/ ... -388953262</a>

  • User Avatar
    0
    lailai487 created

    thanks your help, I'll try it and check again.