Open
Description
Describe the bug
./build/service-worker.js
is no longer generated at all (and there are no error messages) with the latest versions of CRA (4.x) using @next
.
Did you try recovering your dependencies?
Yes.
Which terms did you search for in User Guide?
N/A
Environment
(paste the output of the command here.)
Steps to reproduce
(Write your steps here:)
npx create-react-app test
cd test
npm install --save react-scripts@next
npm run build
ls -la ./build
Expected behavior
./build/service-worker.js
should be present.
Actual behavior
The file is missing. This causes a problem with apps which are upgrading from prior CRA versions, as they continue to reference the cached service worker (so the web app continues to cache old assets).
Reproducible demo
Just run the commands above.