Answer the question
In order to leave comments, you need to log in
How to solve yarn eject problem?
I created a React project
and then on the command line for my project I wrote:
yarn
eject and
instead of new dependencies I got an error:
But I didn’t find a solution to the problem ...
I’ll say right away I don’t know Git at all, I don’t know how to commit, etc.
What specifically to register in the command line?
Answer the question
In order to leave comments, you need to log in
It looks like the user's directory has been added to the git repository.
Those. on the command line, while in the user's folder, the git init command was executed.
The solution is to delete the hidden .git folder in that directory (if you haven't committed anything there) and do a git init in the project folder if you need git at all.
And in general, why do eject? I doubt you need it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question