Trying to use the angular template in an ASP.NET Core Web Application (.NET Framework) #874

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

Originally created by @pafrench on 3/29/2017

Hello. I've used the ASP.NET Core spa template for Angular 2 to generate an ASP.NET Core Web Application (.NET Core) and it works out of the box with no problems.

I've created a new ASP.NET Core Web Application targeting the .NET Framework and have attempted to transfer all of the Angular code over, but I'm getting the following exception when running:

Call to Node module failed with error: Error: No ResourceLoader implementation has been provided. Can't read the url "app.component.html"
at Object.get (C:\Source\Angular2\UI2\ClientApp\dist\vendor.js:59627:19) [angular-universal request]

Not sure what I'm missing? There's talk of swapping out the templateUrl with template and require, but why would the change from .NET Core to .NET Framework require that?

*Originally created by @pafrench on 3/29/2017* Hello. I've used the ASP.NET Core spa template for Angular 2 to generate an ASP.NET Core Web Application (.NET Core) and it works out of the box with no problems. I've created a new ASP.NET Core Web Application targeting the .NET Framework and have attempted to transfer all of the Angular code over, but I'm getting the following exception when running: Call to Node module failed with error: Error: No ResourceLoader implementation has been provided. Can't read the url "app.component.html" at Object.get (C:\Source\Angular2\UI2\ClientApp\dist\vendor.js:59627:19) [angular-universal request] Not sure what I'm missing? There's talk of swapping out the templateUrl with template and require, but why would the change from .NET Core to .NET Framework require that?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#874
No description provided.