Angular CLI + .Net Core 2.1 + Service Worker? #63

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

Originally created by @Ro3A on 5/16/2018

I'm struggling to configure a service worker in my Angular CLI 1.6 project that is hosted from within a .Net Core 2.1 project. Currently, I hit F5 to run the project, webpack does it's thing, and the site is served up.

I've tried following various walk-throughs for added a service worker to my project. The process breaks down when I attempt to run ng build --prod. I get the following error:

Error: ENOENT: no such file or directory, scandir '[localPath]\ClientApp\src\app\dist'

Without getting further into the various errors, I'm hoping someone can give me guidance in regards to how I should even be going about this. Should I be following the Angular CLI walkthroughs? Or Should I be using the .Net Core 2.x WebEssentials route as outlined here:

https://madskristensen.net/blog/progressive-web-apps-made-easy-with-aspnet-core/

*Originally created by @Ro3A on 5/16/2018* I'm struggling to configure a service worker in my Angular CLI 1.6 project that is hosted from within a .Net Core 2.1 project. Currently, I hit F5 to run the project, webpack does it's thing, and the site is served up. I've tried following various walk-throughs for added a service worker to my project. The process breaks down when I attempt to run ng build --prod. I get the following error: Error: ENOENT: no such file or directory, scandir '[localPath]\ClientApp\src\app\dist' Without getting further into the various errors, I'm hoping someone can give me guidance in regards to how I should even be going about this. Should I be following the Angular CLI walkthroughs? Or Should I be using the .Net Core 2.x WebEssentials route as outlined here: https://madskristensen.net/blog/progressive-web-apps-made-easy-with-aspnet-core/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#63
No description provided.