我有一个angularPWA,它不能脱机启动(http错误504)。<anonymous> (https://example.com/ngsw-worker.js:734:35) at fulfilled (https://example.com/ngsw-worker.js:174:62))
Latest manifest h
我正在app.component.ts中注册我的angular服务工作者(来自@angular/PWA)。我无法确定如何在app.component.spec.ts中注册ngsw-worker.js。我在测试文件中的导入如下所示:错误消息:Failed to registera ServiceWorker for scope ('h