ERROR in ./ClientApp/boot.server.ts Module not found : error : Can't resolve './../$$_gendir/ClientApp/app/app.module.server.ngfactory' #371

Closed
opened 2025-08-09 17:16:02 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @rahulsahay19 on 10/9/2017

Hi Team,

While publishing the app using dotnet publish command. Its failing with below reason.

"ERROR in Could not resolve "D:\Rahul\MyExperiments\angular-4-apps\ReimbursementApp\ReimbursementApp\ClientApp\app\app.module.server" from "D:\Rahul\MyExperiments\angular-4-apps\ReimbursementApp\ReimbursementApp\ClientApp\app\app.module.server".

  ERROR in ./ClientApp/boot.server.ts

Module not found : error : Can't resolve './../$$_gendir/ClientApp/app/app.module.server.ngfactory' in 'D:\Rahul\MyExperiments\angular-4-apps\ReimbursementApp\ReimbursementApp\ClientApp' [D:\Rahul\MyExperiments\angular-4-apps\ReimbursementApp\ReimbursementApp\ReimbursementApp.csproj]"

I have attached the screenshot for the same. I am using latest ASP.NET Core 2 template using angular. On local, everything is fine. While publishing only, its giving issue.

3rd

You can also refer repo here:- https://github.com/rahulsahay19/ExpenseReview

Thanks,
Rahul

*Originally created by @rahulsahay19 on 10/9/2017* Hi Team, While publishing the app using dotnet publish command. Its failing with below reason. "ERROR in Could not resolve "D:\Rahul\MyExperiments\angular-4-apps\ReimbursementApp\ReimbursementApp\ClientApp\app\app.module.server" from "D:\Rahul\MyExperiments\angular-4-apps\ReimbursementApp\ReimbursementApp\ClientApp\app\app.module.server". ERROR in ./ClientApp/boot.server.ts Module not found : error : Can't resolve './../$$_gendir/ClientApp/app/app.module.server.ngfactory' in 'D:\Rahul\MyExperiments\angular-4-apps\ReimbursementApp\ReimbursementApp\ClientApp' [D:\Rahul\MyExperiments\angular-4-apps\ReimbursementApp\ReimbursementApp\ReimbursementApp.csproj]" I have attached the screenshot for the same. I am using latest ASP.NET Core 2 template using angular. On local, everything is fine. While publishing only, its giving issue. ![3rd](https://user-images.githubusercontent.com/3886381/31331439-eb79bc7a-acff-11e7-9a9d-8714bfbbce7f.png) You can also refer repo here:- https://github.com/rahulsahay19/ExpenseReview Thanks, Rahul
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#371
No description provided.