We have a project in Visual Studio Team Services that cannot be created and you have a problem with publishing. Here are the errors we get:
ERROR in ./ClientApp/boot.browser.ts (TaskId:55) 13:58:57.035 1>Module
not found : error : Can't resolve
./../$$_gendir/ClientApp/app/app.module.browser.ngfactory' in
'd:\a\3\s\Axalta.ColorSelector\ClientApp'
[d:\a\3\s\Axalta.ColorSelector\Axalta.ColorSelector.csproj]
@ ./ClientApp/boot.browser.ts 6:0-95 (TaskId:55)
ERROR in ./ClientApp/boot.server.ts (TaskId:55)
13:58:57.036 1>Module not found : error : Can't resolve
'./../$$_gendir/ClientApp/app/app.module.server.ngfactory' in
'd:\a\3\s\Axalta.ColorSelector\ClientApp'
[d:\a\3\s\Axalta.ColorSelector\Axalta.ColorSelector.csproj]
@ ./ClientApp/boot.server.ts 8:0-94 (TaskId:55)
Here's what on line 8 of boot.server.ts:
import { AppModule } from './app/app.module.server';
The file app.module.server.ts physically exists, but app.module.server.ngfactory does not work.
I can publish the project locally on my computer.
I did a search and found that other instances of this problem are being solved by changing the settings for npm:
npm install enhanced-resolve@3.3.0
However, I run this from VSTS, which uses the following command to publish:
dotnet publish c:\<path> --configuration release --output c:\<path>
Does anyone have any ideas on how to solve this? I appreciate anyone.
source
share