Turns out that an expo project's path must only have English letters - and mine also had hebrew letters. So after moving the project to another folder in a path with only English letters the error stopped occuring.