# Can't find the module in React.js

**URL:** <https://forum.freecodecamp.org/t/cant-find-the-module-in-react-js/234237>\
**Category:** General\
**Created:** [October 17, 2018, 2:06am UTC](https://forum.freecodecamp.org/t/cant-find-the-module-in-react-js/234237 "2018-10-17T02:06:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alphaleo](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alphaleo](https://forum.freecodecamp.org/u/alphaleo)\
**Post date:** [October 17, 2018, 2:06am UTC](https://forum.freecodecamp.org/t/cant-find-the-module-in-react-js/234237/1 "2018-10-17T02:06:02Z")

</div>

Hey I’m getting an error for react.js for registerSericeWorker(); I did install the creat-react-app and npm install, it supposed to come all together didn’t it? That’s what I’m getting as an error

```auto
./src/index.js
Module not found: Can't resolve './registerServiceWorker' in '/Users/batuhandogan/Desktop/practicing-react/portfolio-with-routes/src'

```

---

<div class="post-metadata">

**Author:** ![Marmiz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marmiz/32/74845_2.png) [@Marmiz](https://forum.freecodecamp.org/u/Marmiz)\
**Post date:** [October 17, 2018, 3:17am UTC](https://forum.freecodecamp.org/t/cant-find-the-module-in-react-js/234237/2 "2018-10-17T03:17:39Z")

</div>

Have you deleted, modified or touch any other file?

Also the newer version of CRA rely either on `npm init, npx or yarn create` to initialise the app. Perhaps `npm install` is no longer needed.

Refer to the [create a new app](https://github.com/facebook/create-react-app#creating-an-app) section of the document for further details.

---

<div class="post-metadata">

**Author:** ![alphaleo](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alphaleo](https://forum.freecodecamp.org/u/alphaleo)\
**Post date:** [October 17, 2018, 1:36pm UTC](https://forum.freecodecamp.org/t/cant-find-the-module-in-react-js/234237/3 "2018-10-17T13:36:57Z")

</div>

No actually I didn’t, everything else it works besides this actullay. And like a week ago I’ve been using react and everything worked fine.

---

<div class="post-metadata">

**Author:** ![alphaleo](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alphaleo](https://forum.freecodecamp.org/u/alphaleo)\
**Post date:** [October 17, 2018, 1:51pm UTC](https://forum.freecodecamp.org/t/cant-find-the-module-in-react-js/234237/4 "2018-10-17T13:51:15Z")

</div>

So I just took it off and it works fine, and seems like registerServiceWorker it’s not even a big deal right know, thank you for your help!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 5:53pm UTC](https://forum.freecodecamp.org/t/cant-find-the-module-in-react-js/234237/5 "2021-01-16T17:53:15Z")

</div>

Closed on January 16, 2021, 5:53pm UTC


