Persistent Build Failure: “Function Runtimes must have a valid version” despite all troubleshooting, including on a minimal “Hello World” test.
Hello,
I am experiencing a persistent and critical build failure and have now exhausted all possible troubleshooting steps. I believe this is a platform-level issue.
Project: onlineafspraken-proxy (of de naam van uw laatste project) Git Repo: https://github.com/Masira888/onlineafspraken-proxy
Problem: Every build consistently fails with the error: Error: Function Runtimes must have a valid version, for example 'now-php@1.0.0'.
This error occurs even though my repository contains a valid vercel.json file in the root directory specifying the Node.js runtime.
Exhaustive Troubleshooting Steps Taken: To isolate the issue, we have performed the following steps without success:
- Verified
vercel.json: We have confirmed multiple times that a validvercel.jsonfile exists in the root of themainbranch. We have tried multiple valid configurations for the runtime, includingnode@18.xandnode@20.x, as well as configurations found in the Vercel community. The error is the same every time. - Verified Build Commit: We confirmed through the Vercel dashboard and commit hashes that Vercel is always building the correct, latest commit from the
mainbranch. - Re-created Project: We completely deleted the original Vercel project and created a brand new, clean project from scratch, linking it to the same repository and re-entering all environment variables. The error persisted on the new project immediately.
- Ultimate “Hello World” Test: As a final diagnostic step, we stripped the repository down to an absolute minimal “Hello World” serverless function (a single
api/test.jsfile), a minimalpackage.json, and the simplest possiblevercel.json({ "functions": { "api/**/*.js": { "runtime": "node@20.x" } } }). The build of this absolute basic test case still fails with the exact same “Function Runtimes” error.
Conclusion: Since even minimal “Hello World” test fails on a brand new, clean project, it must mean that it proves the issue is not with my code or its configuration, but maybe an issue within the Vercel build environment related to my account or this specific repository.
Could you please investigate why the vercel.json file in my repository is being ignored by the build system, even under這些’s most basic test conditions?
Thank you for your time and help.