Code-server: [v2] ServiceWorkerStarter: cannot read property 'register' of undefined

Created on 15 Aug 2019  路  1Comment  路  Source: cdr/code-server


  • code-server version:V2
  • OS Version:
    Debian GNU/Linux

    Description


resourceServiceWorkerClient.ts:27 Uncaught TypeError: Cannot read property 'register' of undefined
at new ServiceWorkerStarter (resourceServiceWorkerClient.ts:27)
at resourceServiceWorkerClient.ts:19
at Function.Module._invokeFactory (loader.js:996)
at Module.complete (loader.js:1006)
at ModuleManager._onModuleComplete (loader.js:1623)
at ModuleManager._resolve (loader.js:1583)
at ModuleManager.defineModule (loader.js:1234)
at DefineFunc (loader.js:1673)
at resourceServiceWorkerClient.ts:4
at fake:1

Steps to Reproduce


  1. code server
bug

Most helpful comment

What browser and version of that browser are you using? The line
in question is: navigator.serviceWorker.register so it looks
like maybe the browser doesn't support service workers?
Edit: this can also happen by using HTTP on something other than localhost.

>All comments

What browser and version of that browser are you using? The line
in question is: navigator.serviceWorker.register so it looks
like maybe the browser doesn't support service workers?
Edit: this can also happen by using HTTP on something other than localhost.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RealSlimMahdi picture RealSlimMahdi  路  3Comments

justmao945 picture justmao945  路  3Comments

lshamis picture lshamis  路  3Comments

tecosaur picture tecosaur  路  3Comments

sa7mon picture sa7mon  路  3Comments