I tried a lot, but my projects don't run with yarn, while already worked(made with create-react-app).
I tried: yarn install - npm install --global yarn - npm update --global yarn - yarn version apply and ect.
when I run yarn start then:
Edit1: When I create a new project(with create-react-app), not occur any error. It gives an error only for the previous projects.
I already did yarn install for those directories, and yarn start worked.
So run yarn install doesn't fix that. Although when I run run install again, it gives this error:
Edit2: When I remove node_modules and .yarn and yarn.lock, then run yarn install and thenyarn start, it gives another error: