已安装服务工作者并进行了配置,但是当我尝试运行该应用程序时,它不起作用
控制台错误
Unhandled Promise rejection: Object(...) is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Object(...) is not a function
at new NgswCommChannel (service-worker.js:34)
at ngswCommChannelFactory (service-worker.js:284)
at _callFactory (core.js:10918)
at _createProviderInstance$1 (core.js:10868)
at initNgModule (core.js:10818)
at new NgModuleRef_ (core.js:12073)
at Object.createNgModuleRef (core.js:12062)
at NgModuleFactory_.create (core.js:15534)
at eval (core.js:5491)
at ZoneDelegate.invoke (zone.js:388) TypeError: Object(...) is not a function
at new NgswCommChannel (webpack-internal:///../../../service-worker/fesm5/service-worker.js:49:98)
at ngswCommChannelFactory (webpack-internal:///../../../service-worker/fesm5/service-worker.js:299:12)
at _callFactory (webpack-internal:///../../../core/esm5/core.js:11134:20)
at _createProviderInstance$1 (webpack-internal:///../../../core/esm5/core.js:11084:26)
at initNgModule (webpack-internal:///../../../core/esm5/core.js:11034:28)
at new NgModuleRef_ (webpack-internal:///../../../core/esm5/core.js:12289:9)
at Object.createNgModuleRef (webpack-internal:///../../../core/esm5/core.js:12278:12)
at NgModuleFactory_.create (webpack-internal:///../../../core/esm5/core.js:15750:25)
at eval (webpack-internal:///../../../core/esm5/core.js:5707:78)
at ZoneDelegate.invoke (webpack-internal:///../../../../zone.js/dist/zone.js:388:26)