Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create react app error - "Module not found" on npm start

I am trying to start React project with create-react-app.
Got an error on npm start:

Failed to compile.

multi ./node_modules/react-scripts/config/polyfills.js ./node_modules/react-dev-utils/webpackHotDevClient.js ./src/index.js
Module not found: Can't resolve 'D:\' in 'D:\!!!DESKTOP\React-test\test-react'

How can I fix it?

like image 423
Skif Avatar asked Mar 16 '26 04:03

Skif


1 Answers

Please follow these steps:

  1. Remove package-lock.json form the project's directory.
  2. Then, run npm install.
  3. And then, do npm start again.
  4. If the issue persists do, rm -rf node_modules to remove the node_modules folder and start again from step 1.

Hope this helps. :)

like image 160
BlackBeard Avatar answered Mar 18 '26 18:03

BlackBeard