You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the registration fails at this line:
and the reason is that the file service-worker.js is not found and serve just sent the index.html file. So the problem is somewhere in the compilation step.
I'm not able to get the service worker registering correctly with this template. Here are the steps to reproduce the problem :
npx create-react-app@5.0.0 my-pwa --template redux-typescript
index.tsx
to enable the service worker at line 21 as follow :serviceWorker.register();
npm run build
serve -s build
The service workers are not installed, this is visible either setting a breakpoint as well as checking with Chrome's developer tools.
The text was updated successfully, but these errors were encountered: