TypeError: Cannot read properties of undefined (reading 'register')
I'm sorry my skills are holding me back
When I set up the environment, the deployment was successful but the open page appeared TypeError: Cannot read properties of undefined (reading 'register')
By the way, if you have docker, I really want a docker image
There is a problem registering the service worker. This could happen due to your browser not supporting the API, disabling it via settings or if you are using incognito mode. If you paste 'serviceWorker' in navigator in your console I expect you will get false. You need to change your setup so that evaluates to true.
I have considered changing the code so it doesn't throw a hard error in this case, but it'd take some thought and effort because the service worker is used for some crucial functionality like offline mode and notifications.
Dockerization wouldn't help in this case because it is (probably) an issue with your browser.
Hope that helps, let me know how you get on
Did you make code changes? To help debug it would be helpful to check:
- whether evaluating
'serviceWorker' in navigatorin the browser console istrueorfalse - whether evaluating
window.isSecureContextin the browser console istrueorfalse
Both need to be true for the application to run