Hello Vercel Team,
My project is consistently failing to build due to a TypeScript error, and I believe it’s caused by an issue with the build cache.
Project: https://github.com/Laxman-1998/opinioator Latest Failed Build Log: (Provide the URL to the deployment log you just shared)
Problem: The build always fails with a Type error: Type parameter declaration expected. in the dependency @types/d3-dispatch.
Troubleshooting Steps Taken: I have worked extensively to resolve this and can confirm the issue is not in my code or local setup. We have tried the following, all of which resulted in the same build error:
- Dependency Override: I am using an
overridesblock in mypackage.jsonto force a known-good version of the problematic package (@types/d3-dispatch: "3.0.7"). - Lockfile Regeneration: I have deleted and completely regenerated my
package-lock.jsonmultiple times to ensure it’s correct and pushed it to GitHub. You can see this in my commit history. - Manual Cache Clearing: I have tried redeploying from the dashboard with the “Use existing Build Cache” option unchecked.
- Build Command Change: I have changed my
buildcommand inpackage.jsonto"echo 'Busting cache...' && next build"specifically to invalidate the cache.
Key Finding: Despite all these steps, every single build log—even after changing the build command—shows the line Restored build cache from previous deployment. The build environment seems to be ignoring the correct package-lock.json and the cache invalidation triggers.
Could you please investigate the build environment for this project and consider purging the build cache on your end?