Vercel deployment failes because of import in middleware.js #3508
Unanswered
aservment
asked this question in
Self-Hosting
Replies: 1 comment
-
Mine was able to build with the following env vars. One important thing to note is that the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi together,
I am trying to deploy the latest version of Cal.com to Vercel and unfortunately it fails with the following error message. (Node 16.x)
`
...
Done in 68.15s.
01:48:15.130 | Using TypeScript 4.6.4 (local user-provided)
01:48:51.179 | Build failed with 2 errors:
01:48:51.179 | vc-file-system:apps/web/middleware.js:3:25: error: Could not resolve "next-collect/server" (mark it as external to exclude it from the bundle, or surround it with try/catch to handle the failure at run-time)
01:48:51.180 | vc-file-system:apps/web/middleware.js:4:28: error: Could not resolve "@lib/telemetry" (mark it as external to exclude it from the bundle, or surround it with try/catch to handle the failure at run-time)
01:48:56.247 | @calcom/web:build:
01:48:56.248 | @calcom/web:build: ./pages/api/auth/saml/token.ts
01:48:56.248 | @calcom/web:build: 15:17 Warning: Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any
01:48:56.248 | @calcom/web:build:
...
`
I have set the following environment variables:
CALENDSO_ENCRYPTION_KEY
NEXTAUTH_SECRET
DATABASE_URL
The Build & Development Settings in Vercel I have configured like in this image:
Does anyone have any idea why the build process is not working?
Best Regards
Thomas
Beta Was this translation helpful? Give feedback.
All reactions