DEV Community

Discussion on: The easiest way to extend or customize Create React App service worker without ejecting

Collapse
 
m3h0w profile image
Michał Gacka

Hey @daniel Dopiriak there's a better solution I found today. CRA 4.0.0 has the service worker file available in the src folder: dev.to/m3h0w/don-t-struggle-with-e...

Collapse
 
avatar19710 profile image
Daniel Dopiriak

Thanks, Michal. We do use some libraries which might not be supported by the new version of react. I will have to look at it more closely. But I really appreciate your comment.

Thread Thread
 
m3h0w profile image
Michał Gacka

Based on this discussion I think there is a minor version upgrade in React 16 that is compatible with CRA 4 so maybe you don't have to upgrade to React 17 if that's what you meant :)