calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.36k stars 7.57k forks source link

Vercel deployment failed at the serverless middleware stage #4511

Closed dizys closed 1 year ago

dizys commented 2 years ago

Issue Summary

Following docs on deploying with Vercel. The web build finished successfully. After that, it failed with the following messages:

vc-file-system:apps/web/middleware.js:3:25: ERROR: Could not resolve "next-collect/server"
vc-file-system:packages/lib/telemetry.js:4:25: ERROR: Could not resolve "next-collect/client"

Looks like the middleware deployment failed with unresolved packages.

Steps to Reproduce

Follow exactly docs on deploying with Vercel.

Technical details

djm-35 commented 1 year ago

I am hitting the exact same errors.

PeerRich commented 1 year ago

@zomars @emrysal @alishaz-polymath

alishaz-polymath commented 1 year ago

Hey @djm-35 @dizys Are you guys still facing the same error? If so, could you please book a call with me so that we can explore this?

PeerRich commented 1 year ago

can you try again with the most recent version?

yun-jay commented 1 year ago

The error still exists:

Error: The Edge Function "middleware" is referencing unsupported modules:
        - apps/web/middleware.js: next-collect/server
        - next: stream, fs, url
        - packages/lib/telemetry.js: next-collect/client

How can I debug this?