When I execute Webpack using the command
node node_modules/webpack/bin/webpack. js --env. prod
An error message is displayed below. However, when running in --env. dev mode, the command executes without any issues.
Can't resolve './../$$_gendir/ClientApp/app/app.module.browser.ngfactory' in 'C:\Users\marco.gall\Source\Solvendi2\Portale-DevMAGA\Portal\ClientApp'
Can't resolve './../$$_gendir/ClientApp/app/app.module.server.ngfactory' in 'C:\Users\marco.gall\Source\Solvendi2\Portale-DevMAGA\Portal\ClientApp'
In the storage location, there are three template-created files:
- app.module.shared.ts
- app.module.browser.ts
- app.module.server.ts
This issue surprises me. The problem only occurs in branches created by TFS. In the original version, the command runs successfully without any errors despite all code files being present.
Is there anyone who can offer some assistance?