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)
-
0
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I don't know how to do that.... I'm an Angular beginner :(
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
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>
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
thanks your help, I'll try it and check again.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)