Following the procedure which I mentioned here or directly putting your static files from local (generated after build) to netlify?
What is the yarn package manager error ?
Go to deploy settings -> edit settings -> build settings -> build command - enter as ci=yarn build and save
Go to retry deploy -> Deploy site.
I'm not very confident if the above would resolve your issue but that has helped a lot of people, even in stack overflow I had come across this solution. Do give a try and also respond to the questions so that we would come to know about the exact issue.
@[Karthikeyan RM] Hii, I tried again and got an error same as "Command failed with exit code 1: yarn build " any suggestions?? and one thing I want to add is I didn't make a repo like you said I mean I have used existing repo and I think that couldn't be a problem..
Vaibhav Chauhan I think the issue could be due to wrongly fetched dependencies. One thing you can do is to execute the below commands which would remove the existing node modules, clear cache & reinstall and see if it helps
@[Karthikeyan RM] IDK why but still not working I think this must be a problem of dependencies I'll restore all of those in the new create-react-app that's the only option I am left with.