0
votes

My project failed to compile saying ./src/index.js Module not found: Can't resolve './registerServiceWorker' in 'C:\Users\Jaybee\Desktop\Projects\webzone\src'

enter image description here

1
Try removing registerServiceWorker import from index.js, which i'm assuming you are not using. - DJ Yadav
Can you add index.js file and service worker files? - Avanthika
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Card from './Card'; import serviceWorker from './serviceWorker'; import 'tachyons'; ReactDOM.render(<Card />, document.getElementById('root')); serviceWorker(); - Jude Obiejesi

1 Answers

2
votes

Can you show index.js file?

And also check out this thread, it may be the same problem:

Module not found: Can't resolve './registerServiceWorker