Chapter 10 - prod build
Opened this issue · 2 comments
I am trying to build prod but get that error:
ERROR in : Cannot determine the module for class CartSummaryComponent in D:/PROJECTS/sdtyn/pro-angular-6/SportsStore/src/app/store/cartSummary.component.ts! Add CartSummaryComponent to the NgModule to fix it.
I am using Angular-7.2.0 and I think it is a problem with Angular 7.
How can I fix this issue? Any idea?
How can the results of this chapter (10) be pushed to a server and run? The title and initial text of Chapter 10 would lead one to believe that we could deploy the results of this work to someplace else?
@michaelschore If my understanding is correct, ng build --prod
creates a directory "dist/", which contains compiled verison of everything you code in Angular. Simply upload dist/ to your HTTP server to have your app served. node server.js
does just that.