2

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?

2
  • so you installed the create-react-app package using npm as globally Commented Jan 25, 2018 at 6:26
  • @Skif was your issue resolved? Commented Jan 25, 2018 at 17:39

2 Answers 2

6

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. :)

Sign up to request clarification or add additional context in comments.

Comments

2

An exclamation mark is part of webpack loader syntax. Remove exclamation sign from your directory path D:\!!!DESKTOP\React-test\test-react More info - Webpack Loaders configuration

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.