nvm use 20.10.0
- Use node v20yarn
- Install dependenciesyarn global add vercel@33.5.0
vercel dev -l 3000
curl http://localhost:3000/api/hello
- Expected: Successful "hello" response
- Actual:
- Response:
FUNCTION_INVOCATION_FAILED
❌ - vercel dev logs:
Error: Cannot use import statement outside a module
❌
- Response:
nvm use 18.17.1
- Use node v18yarn
- Install dependenciesyarn global add vercel@33.5.0
vercel dev -l 3000
curl http://localhost:3000/api/hello
- Expected: Successful "hello" response
- Actual: 200 "hello" ✅