Create react app pwa typescript template can't detect service worker #10793
Unanswered
joaopedrocoelho
asked this question in
Q&A
Replies: 1 comment
-
More information is needed to solve this issue. Do you have a shareable link to your project? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran
npx create-react-app my-app --template cra-template-pwa-typescript
to create a typescript PWA template following the docs and then I changedserviceWorker.unregister()
; in index.js toserviceWorker.register();
and ran the development build, but chrome can't seem to find the service worker, Lighthouse returns: "No matching service worker detected. You may need to reload the page, or check that the scope of the service worker for the current page encloses the scope and start URL from the manifest."is there anything else I have to do to make it work?
Beta Was this translation helpful? Give feedback.
All reactions