I have a project that uses pnpm and turbo build.
I just ran into a strange issue. I have a file (compSelect copy.tsx
) that I deleted. When I then run turbo build
, I get:
run failed: error hashing package files: git error: 'git status' in /Users/... had a parse error git error: failed to parse git-status: copy.tsx
If I delete the .git
folder, I can build with turbo, so it's indeed somehow related to data stored in that .git
folder. But what and where?
Is there a solution/fix/workaround?
The issue is that copy.tsx
was not being tracked by git, so git status
was throwing a warning that the build was not able to parse.
To fix the issue, add the file using git add copy.tsx
and then commit your changes.