Help, vercel does not build

Hi, @ksawery29! Welcome to the Vercel Community :smile:

I can understand how frustrating this is! Let’s try and debug together. FWIW, here are some potentially useful resources to debug build errors:

The errors you’re seeing suggest there might be a version mismatch or incompatibility. Can you access the full build logs in your Vercel dashboard? Look for any warnings or errors at the beginning of the build process that might provide more context .

Since even old, previously working versions are failing, it might be helpful to create a minimal reproduction of your project. This could help isolate whether the issue is with your code or Vercel’s build process.

Regarding the specific errors:

  1. The useFormStatus error suggests a version mismatch between your local environment and Vercel’s build environment. Double-check your package.json to ensure you’re using compatible versions of next, react, and react-dom.
  2. The form action error might be related to TypeScript configurations. Ensure your tsconfig.json is up-to-date and compatible with your Next.js version.

If these steps don’t resolve the issue, please provide more details about your project structure, package.json, and any next.config.js file you might have. This will help in providing more targeted advice.