I have a redwoodjs project deployed on Vercel. I ran into this issue ~1.5 months ago, where the app could no longer deploy on Vercel: ~2 minutes after building, directly after migrations, I would get this error:
Error: File not found: /vercel/path0/api/src/functions/auth.js
Strangely, trying to redeploy prior versions (that previously deployed without any issues) also led to this error. I sort of chalked this up to an error on Vercel/RedwoodJS, but the issue still persists 40 days later. Couldn’t find any similar issues online and also strange given that I use ts and not js (and that’s reflected in my Vercel settings). No local issues either.
[web]
title = “RedwoodApp”
port = 8910
apiUrl = “/api”
includeEnvironmentVariables = [
# Add any ENV vars that should be available to the web side to this array
# See Environment Variables | RedwoodJS Docs
]
[api]
port = 8911
[browser]
open = true
[notifications]
versionUpdates = [“latest”]`
Thanks. I’m not entirely sure how these help solve the issue, however. No part of my code has changed – I am simply getting the following error when I try to deploy on Vercel: File not found: /vercel/path0/api/src/functions/auth.js
I tried upgrade my Redwood version to 8.4. However, I get the following error:
`[commonjs–resolver] Missing “./dist/toast” specifier in “@redwoodjs/web” package
22:16:03.662`
The solution offered in this link does not work, as I get the same error. And installing the react-hot-toast pacage directly does not work, as the above ./dist/toast specifier error occurred at deployment.
Bumping this because it’s still not working. No changes were made to my code – I can’t redeploy code that was previously deployed (with no issues) on Vercel. I still get the same error with Error: File not found: /vercel/path0/api/src/functions/auth.js.