It feels like there is something odd going on with your node_modules as I’ve seen this before and I don’t remember exactly how this was solved, when you cleaned stuff up did you wipe your node_modules (I know I didn’t mention it before, but usually yarn will do it anyway if you don’t have a yarn.lock).
On a side note, I assume your docker container is saving the project to disk in a persistent way?