You need to run this on the console: node node_modules / webpack / bin / webpack.js --env.prod
then you will get a list of all the problems, and they need to solve everything, someone will look:
ERROR in navmenu.component.html: Property 'auth' is protected and only accessible within class 'NavMenuComponent' and its subclasses.
another case:
ERROR in Error at estados.component.html(19,72): Expected 0 arguments, but got 1.
Error at home.component.html(8,12): Property 'selectedCharacter' does not exist on type 'HomeComponent'. Did you mean 'selectedCharacters'?
Each error has a suitable solution, you need to solve everything.
You can check this link:
Angular - The command "node node_modules / webpack / bin / webpack.js -env.prod" came out with code 2 and similar errors: how to fix them
source
share