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:&hostname=0.0.0.0&port=3000&pathname=/ws&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:&hostname=0.0.0.0&port=3000&pathname=/ws&logging=none&reconnect=10' in 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app'
webpack compiled with 1 error
CodePudding user response:
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
CodePudding user response:
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.