resolved by deleting the yarn.lock file and re-running yarn install --check-files
yarn install --check-files