calcom / cal.com

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

Vercel build fails: Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. #1908

Closed SimonMayerhofer closed 2 years ago

SimonMayerhofer commented 2 years ago

Since the last release my vercel builds are not working anymore. Do I need to change something in the configuration?

Log:

Details ``` Cloning completed: 781.563ms Analyzing source code... Installing build runtime... Build runtime installed: 3.973s Looking up build cache... Build Cache not found Warning: Due to "engines": { "node": ">=14.x" } in your `package.json` file, the Node.js Version defined in your Project Settings ("14.x") will not apply. Learn More: http://vercel.link/node-version Installing dependencies... yarn install v1.22.17 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... [4/5] Linking dependencies... warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > react-multi-email@0.5.3" has incorrect peer dependency "react@^16.3.2". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > react-multi-email@0.5.3" has incorrect peer dependency "react-dom@^16.3.2". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > babel-jest@27.5.1" has unmet peer dependency "@babel/core@^7.8.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/config > eslint-config-next@12.0.10" has unmet peer dependency "eslint@^7.23.0 || ^8.0.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/config > eslint-config-next@12.0.10" has unmet peer dependency "next@>=10.2.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/prisma > zod-prisma@0.5.4" has unmet peer dependency "zod@^3.0.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra > @mdx-js/loader@2.0.0" has unmet peer dependency "webpack@>=4". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra-theme-docs > @reach/skip-nav@0.11.2" has incorrect peer dependency "react@^16.8.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra-theme-docs > @reach/skip-nav@0.11.2" has incorrect peer dependency "react-dom@^16.8.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra-theme-docs > next-themes@0.0.8" has incorrect peer dependency "next@^9.5.5". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra-theme-docs > next-themes@0.0.8" has incorrect peer dependency "react@^16.13.1". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra-theme-docs > next-themes@0.0.8" has incorrect peer dependency "react-dom@^16.13.1". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra-theme-docs > react-innertext@1.1.5" has unmet peer dependency "@types/react@>=0.0.0 <=99". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > react-hot-toast > goober@2.1.7" has unmet peer dependency "csstype@^2.6.2". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > tsdav > rollup-plugin-polyfill-node@0.8.0" has unmet peer dependency "rollup@^1.20.0 || ^2.0.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > babel-jest > babel-preset-jest@27.5.1" has unmet peer dependency "@babel/core@^7.0.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/config > eslint-config-next > @typescript-eslint/parser@5.11.0" has unmet peer dependency "eslint@^6.0.0 || ^7.0.0 || ^8.0.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/config > eslint-config-next > eslint-import-resolver-typescript@2.5.0" has unmet peer dependency "eslint@*". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/config > eslint-config-next > eslint-plugin-import@2.25.4" has unmet peer dependency "eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/config > eslint-config-next > eslint-plugin-jsx-a11y@6.5.1" has unmet peer dependency "eslint@^3 || ^4 || ^5 || ^6 || ^7 || ^8". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra-theme-docs > @reach/skip-nav > @reach/utils@0.11.2" has incorrect peer dependency "react@^16.8.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/docs > nextra-theme-docs > @reach/skip-nav > @reach/utils@0.11.2" has incorrect peer dependency "react-dom@^16.8.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > tsdav > rollup-plugin-polyfill-node > @rollup/plugin-inject@4.0.4" has unmet peer dependency "rollup@^1.20.0 || ^2.0.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > babel-jest > babel-preset-jest > babel-preset-current-node-syntax@1.0.1" has unmet peer dependency "@babel/core@^7.0.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > tsdav > rollup-plugin-polyfill-node > @rollup/plugin-inject > @rollup/pluginutils@3.1.0" has unmet peer dependency "rollup@^1.20.0||^2.0.0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-bigint@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-class-properties@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-import-meta@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0". warning "workspace-aggregator-11121447-cf44-479a-8a79-4ac63d318dba > @calcom/web > babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-top-level-await@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0". warning Workspaces can only be enabled in private projects. warning Workspaces can only be enabled in private projects. [5/5] Building fresh packages... $ husky install husky - Git hooks installed Done in 90.65s. Detected Next.js version: 12.0.10 Running "yarn run build" yarn run v1.22.17 $ turbo run build --scope="@calcom/web" --include-dependencies • Packages in scope: @calcom/lib, @calcom/prisma, @calcom/tsconfig, @calcom/web • Remote computation caching enabled (experimental) • Running build in 4 packages @calcom/prisma:build: cache miss, executing 6b764ef560e1e3a1 @calcom/prisma:build: $ yarn generate-schemas @calcom/prisma:build: $ prisma generate @calcom/prisma:build: Prisma schema loaded from schema.prisma @calcom/prisma:build: @calcom/prisma:build: ✔ Generated Prisma Client (3.0.2) to ./../../node_modules/@prisma/client in 538ms @calcom/prisma:build: @calcom/prisma:build: ✔ Generated Zod Schemas (0.5.4) to ./zod in 619ms @calcom/prisma:build: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client @calcom/prisma:build: ``` @calcom/prisma:build: import { PrismaClient } from '@prisma/client' @calcom/prisma:build: const prisma = new PrismaClient() @calcom/prisma:build: ``` @calcom/web:build: cache miss, executing b7afb2340680cdd9 @calcom/web:build: $ next build @calcom/web:build: Attention: Next.js now collects completely anonymous telemetry regarding usage. @calcom/web:build: This information is used to shape Next.js' roadmap and prioritize features. @calcom/web:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: @calcom/web:build: https://nextjs.org/telemetry @calcom/web:build: @calcom/web:build: info - Skipping validation of types... @calcom/web:build: info - Creating an optimized production build... @calcom/web:build: @calcom/web:build: warn - The RTL features in Tailwind CSS are currently in preview. @calcom/web:build: warn - Preview features are not covered by semver, and may be improved in breaking ways at any time. @calcom/web:build: info - Compiled successfully @calcom/web:build: info - Collecting page data... @calcom/web:build: info - Generating static pages (0/455) @calcom/web:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @calcom/web:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @calcom/web:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @calcom/web:build: info - Generating static pages (113/455) @calcom/web:build: info - Generating static pages (227/455) @calcom/web:build: info - Generating static pages (341/455) @calcom/web:build: info - Generating static pages (455/455) @calcom/web:build: info - Finalizing page optimization... @calcom/web:build: @calcom/web:build: Page Size First Load JS @calcom/web:build: ┌ λ / 248 B 147 kB @calcom/web:build: ├ /_app 0 B 147 kB @calcom/web:build: ├ λ /[user] 2.63 kB 301 kB @calcom/web:build: ├ λ /[user]/[type] 546 B 437 kB @calcom/web:build: ├ λ /[user]/book 600 B 364 kB @calcom/web:build: ├ ○ /404 3.1 kB 161 kB @calcom/web:build: ├ λ /api/auth/[...nextauth] 0 B 147 kB @calcom/web:build: ├ λ /api/auth/changepw 0 B 147 kB @calcom/web:build: ├ λ /api/auth/forgot-password 0 B 147 kB @calcom/web:build: ├ λ /api/auth/reset-password 0 B 147 kB @calcom/web:build: ├ λ /api/auth/saml/authorize 0 B 147 kB @calcom/web:build: ├ λ /api/auth/saml/callback 0 B 147 kB @calcom/web:build: ├ λ /api/auth/saml/token 0 B 147 kB @calcom/web:build: ├ λ /api/auth/saml/userinfo 0 B 147 kB @calcom/web:build: ├ λ /api/auth/signup 0 B 147 kB @calcom/web:build: ├ λ /api/auth/two-factor/totp/disable 0 B 147 kB @calcom/web:build: ├ λ /api/auth/two-factor/totp/enable 0 B 147 kB @calcom/web:build: ├ λ /api/auth/two-factor/totp/setup 0 B 147 kB @calcom/web:build: ├ λ /api/availability/[user] 0 B 147 kB @calcom/web:build: ├ λ /api/availability/calendar 0 B 147 kB @calcom/web:build: ├ λ /api/availability/day 0 B 147 kB @calcom/web:build: ├ λ /api/availability/eventtype 0 B 147 kB @calcom/web:build: ├ λ /api/book/confirm 0 B 147 kB @calcom/web:build: ├ λ /api/book/event 0 B 147 kB @calcom/web:build: ├ λ /api/cancel 0 B 147 kB @calcom/web:build: ├ λ /api/cron/bookingReminder 0 B 147 kB @calcom/web:build: ├ λ /api/cron/downgradeUsers 0 B 147 kB @calcom/web:build: ├ λ /api/event-type 0 B 147 kB @calcom/web:build: ├ λ /api/eventType 0 B 147 kB @calcom/web:build: ├ λ /api/import/calendly 0 B 147 kB @calcom/web:build: ├ λ /api/import/savvycal 0 B 147 kB @calcom/web:build: ├ λ /api/integrations 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/apple/add 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/caldav/add 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/googlecalendar/add 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/googlecalendar/callback 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/office365calendar/add 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/office365calendar/callback 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/stripepayment/add 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/stripepayment/callback 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/stripepayment/portal 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/stripepayment/webhook 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/tandemvideo/add 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/tandemvideo/callback 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/utils 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/zoomvideo/add 0 B 147 kB @calcom/web:build: ├ λ /api/integrations/zoomvideo/callback 0 B 147 kB @calcom/web:build: ├ λ /api/me 0 B 147 kB @calcom/web:build: ├ λ /api/schedule 0 B 147 kB @calcom/web:build: ├ λ /api/teams 0 B 147 kB @calcom/web:build: ├ λ /api/teams/[team] 0 B 147 kB @calcom/web:build: ├ λ /api/teams/[team]/invite 0 B 147 kB @calcom/web:build: ├ λ /api/teams/[team]/membership 0 B 147 kB @calcom/web:build: ├ λ /api/teams/[team]/profile 0 B 147 kB @calcom/web:build: ├ λ /api/teams/[team]/upgrade 0 B 147 kB @calcom/web:build: ├ λ /api/trpc/[trpc] 0 B 147 kB @calcom/web:build: ├ λ /api/upgrade 0 B 147 kB @calcom/web:build: ├ λ /api/user/[id] 0 B 147 kB @calcom/web:build: ├ λ /api/user/avatar 0 B 147 kB @calcom/web:build: ├ λ /api/user/me 0 B 147 kB @calcom/web:build: ├ λ /api/user/membership 0 B 147 kB @calcom/web:build: ├ λ /api/user/profile 0 B 147 kB @calcom/web:build: ├ λ /auth/error 3.23 kB 158 kB @calcom/web:build: ├ λ /auth/forgot-password 9.34 kB 343 kB @calcom/web:build: ├ λ /auth/forgot-password/[id] 8.94 kB 160 kB @calcom/web:build: ├ λ /auth/login 8.21 kB 345 kB @calcom/web:build: ├ λ /auth/logout 3.32 kB 158 kB @calcom/web:build: ├ λ /auth/signup 7.08 kB 191 kB @calcom/web:build: ├ λ /auth/sso/[provider] 505 B 147 kB @calcom/web:build: ├ ○ /availability 9 kB 262 kB @calcom/web:build: ├ ○ /availability/troubleshoot 2.78 kB 194 kB @calcom/web:build: ├ λ /bookings 254 B 147 kB @calcom/web:build: ├ ○ /bookings/[status] 7.31 kB 231 kB @calcom/web:build: ├ λ /cancel/[uid] 12.1 kB 196 kB @calcom/web:build: ├ ○ /cancel/success 3.29 kB 161 kB @calcom/web:build: ├ ○ /event-types 14.6 kB 416 kB @calcom/web:build: ├ λ /event-types/[type] 73.6 kB 577 kB @calcom/web:build: ├ └ css/ee19099814a1d4e3.css 1.14 kB @calcom/web:build: ├ λ /getting-started 12.2 kB 358 kB @calcom/web:build: ├ ○ /integrations 8.02 kB 263 kB @calcom/web:build: ├ λ /integrations/[integration] 264 B 147 kB @calcom/web:build: ├ λ /payment/[uid] 15 kB 180 kB @calcom/web:build: ├ λ /reschedule/[uid] 266 B 147 kB @calcom/web:build: ├ ● /sandbox 1.19 kB 152 kB @calcom/web:build: ├ ● /sandbox/Alert 2.02 kB 156 kB @calcom/web:build: ├ ● /sandbox/Badge 1.81 kB 152 kB @calcom/web:build: ├ ● /sandbox/Button 2.8 kB 156 kB @calcom/web:build: ├ ● /sandbox/form 3.3 kB 186 kB @calcom/web:build: ├ ● /sandbox/List 3.03 kB 153 kB @calcom/web:build: ├ ○ /sandbox/preview-error-page 2.67 kB 149 kB @calcom/web:build: ├ ○ /sandbox/RadioArea 4.99 kB 155 kB @calcom/web:build: ├ ○ /sandbox/test-async-error (558 ms) 1.83 kB 149 kB @calcom/web:build: ├ λ /sandbox/test-error 1.51 kB 148 kB @calcom/web:build: ├ ○ /settings/billing 3.66 kB 195 kB @calcom/web:build: ├ λ /settings/profile 13.2 kB 485 kB @calcom/web:build: ├ ○ /settings/security 7.49 kB 373 kB @calcom/web:build: ├ ○ /settings/teams 7.66 kB 354 kB @calcom/web:build: ├ ○ /settings/teams/[id] 9.93 kB 535 kB @calcom/web:build: ├ ○ /settings/teams/[id]/availability 9.6 kB 476 kB @calcom/web:build: ├ λ /success 35.6 kB 223 kB @calcom/web:build: ├ λ /team/[slug] 12.8 kB 341 kB @calcom/web:build: ├ λ /team/[slug]/[type] 551 B 437 kB @calcom/web:build: ├ λ /team/[slug]/book 552 B 364 kB @calcom/web:build: ├ λ /video/[uid] 35.2 kB 182 kB @calcom/web:build: ├ λ /video/meeting-ended/[uid] 5.97 kB 164 kB @calcom/web:build: ├ λ /video/meeting-not-started/[uid] 6.02 kB 164 kB @calcom/web:build: └ ○ /video/no-meeting-found 3.13 kB 161 kB @calcom/web:build: + First Load JS shared by all 147 kB @calcom/web:build: ├ chunks/framework-d124cb1da80cd7e9.js 42.2 kB @calcom/web:build: ├ chunks/main-390403bc93950cad.js 32.3 kB @calcom/web:build: ├ chunks/pages/_app-79dd4aba7613f88f.js 69.8 kB @calcom/web:build: ├ chunks/webpack-6df9d334b9a3ebc1.js 2.44 kB @calcom/web:build: └ css/9af5f3d04949419d.css 12.3 kB @calcom/web:build: @calcom/web:build: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) @calcom/web:build: ○ (Static) automatically rendered as static HTML (uses no initial props) @calcom/web:build: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps) @calcom/web:build: @calcom/web:build: Next.js Analytics is enabled for this production build. You'll receive a Real Experience Score computed by all of your visitors. @calcom/web:build: Tasks: 2 successful, 2 total Cached: 0 cached, 2 total Time: 1m46.689s Done in 119.10s. Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. This is normally caused by a misconfiguration in your project. ```
zomars commented 2 years ago

Since we moved into a Monorepos structure, you may need to update you build command and root directory according to their docs.

SimonMayerhofer commented 2 years ago

Thanks, that helped! Their docs are not fitting for this repo though. Needed to change the build command to cd ../.. && yarn run build and install command to yarn install --prefix=../...

But now I ran into the limits of the Hobby plan of vercel, which is not related to this though. Error: No more than 12 Serverless Functions can be added to a Deployment on the Hobby plan. Create a team (Pro plan) to deploy more. Learn More: https://vercel.link/function-count-limit

As I'm not going to upgrade I'll see what I'll do, but consider this issue closed.

erika-londono commented 1 year ago

In my case I fixed by removing distDir: 'build' from the next.config.js file

rafarc21 commented 4 months ago

Running into the same error. Tried all linked solutions. I'd be $100 to anyone who can help me get past this - contact me at rafael@yinflow.us