1

I am trying to run create-react-app and after entering npm start I am getting this error

Failed to compile.

Module not found: Error: Can't resolve 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app\node_modules\webpack-dev-server\client\index.js?protocol=ws%3A&hostname=0.0.0.0&port=3000&pathname=%2Fws&logging=none&reconnect=10' in 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app'
ERROR in Module not found: Error: Can't resolve 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app\node_modules\webpack-dev-server\client\index.js?protocol=ws%3A&hostname=0.0.0.0&port=3000&pathname=%2Fws&logging=none&reconnect=10' in 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app'

webpack compiled with 1 error
1
  • 2
    Don't know if it comes from here, but you can try to remove the # from your folder project#1 Commented May 27, 2022 at 12:45

3 Answers 3

1

There is a problem while reading the directory because there is a # character in your file path. Do not use # and similar signs in your directory path. Good work.

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

Comments

0

I had the same error, I change my path and remove all # form it.

It should be like this #React/myProject/project#1 => React/myProject/project1

Comments

0

Thanks for the help everyone, it resolved the error.

1 Comment

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.