Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No matching files ... were found. (ReactJS)

Tags:

npm

reactjs

so I tried to run npm start on my react app. But It's not running, instead it responds like this:

'/Users/macintoshhd/iCloud Drive (Archive)/Documents/Abu Abdillatief/Self Study/vetme/src/.' were found.

Can anybody help? In previous projects everything runs fine, and I tried to run other previous projects again that has no . file in src folder, it ran well, no problems. Plus, this one also has no . file in src folder as well.

I dont know if . refers to index.js or any other files, but it clearly has no different when it comes to files contained within src when initializing npx create-react app ... or create-react-app ....

What I've tried:

  • Delete node_modules
  • Re-run npm install
  • Update npm version

I hope this information could help in finding solutions, I cant quite see the problem myself, thank you.

like image 946
abuabdillatief Avatar asked Oct 24 '20 10:10

abuabdillatief


1 Answers

I face the problem also, and found this link https://github.com/facebook/create-react-app/issues/9902

There mentioned that your directory path shouldn't have any space, since the last react update.

C:\Desktop\React App (BootCamp)\myApp> npm start

After I removed the space from the directory path, it still doesn't works.

C:\Desktop\ReactApp(BootCamp)\myApp> npm start

Then I tried to remove the parenthesis also... and it works.

C:\Desktop\ReactAppFromBootCamp\myApp> npm start
like image 68
humblebee Avatar answered Oct 14 '22 03:10

humblebee