serviceWorker is missing from Ionic 4 React

I used Ionic CLI to create a React Ionic 4 project, but serviceWorker doesn’t exist, this will fail:

import registerServiceWorker from './registerServiceWorker';

Does anyone have an answer/solution to this?