H
H
hulktoster2019-09-07 16:43:30
JavaScript
hulktoster, 2019-09-07 16:43:30

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?
5d73bda2037e6007034207.jpeg
5d73bdae82499231033439.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2019-09-08
@hulktoster

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 question

Ask a Question

731 491 924 answers to any question