Reputation: 1308
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?
Upvotes: 2
Views: 12169
Reputation: 46
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
Upvotes: 2
Reputation: 10624
Please follow these steps:
package-lock.json
form the project's directory. npm install
.npm start
again.rm -rf node_modules
to remove the node_modules
folder and start again from step 1.Hope this helps. :)
Upvotes: 6