This article talks about ” Can’t resolve ‘./../$$_gendir/ClientApp/app/app.browser.module.ngfactory'” error while publishing a dot net core 3, angular 5 application created from SPA template and how to fix it.
When I was building my aspnet core web applciation, I got following errors in my Gitlab CI pipeline, in this article, we will try to resolve them.
- Module not found : error : Can’t resolve ‘./../$$_gendir/ClientApp/app/app.browser.module.ngfactory’
- error MSB3073: The command “node node_modules/webpack/bin/webpack.js –env.prod” exited with code 2.
@angular/cli - Version 1.5.5 Node: Version 8.2.1 npm: Version 5.5.1 dotnet code: Version 2.1.1-preview-007165
Step 1: Create a new Dotnet core 2 Angular application from SPA
Run following commands in a shell
mkdir ng5-app cd ng5-app dotnet new angular npm install