Error MSB3073: the command "node node_modules / webpack / bin / webpack.js --env.prod" came out with code 2

I am creating a web application using asp.net core 2x and angular 5, everything works out fine during the development / debugging process. But when I try to publish it in release mode in visual studio 2017, I get this error .please help me resolve this. I do not use this in my code, but it exists. Function calls are not supported in decorators, but "makeParamDecorator" was called in "Injectable". Injectable calls "makeParamDecorator". Please, help. Thanks in advance. Screenshot of my error message

+4
source share
1 answer

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

+5
source

Source: https://habr.com/ru/post/1693138/


All Articles