Try deleting node_modules folder and running yarn again.
I had the same error, and that fixed it for some reason, might work for you.