Skip to content

14.0.4-canary.36 breaks build of turborepo on Vercel - Works up to 14.0.4-canary.35 #62425

@avitorio

Description

@avitorio

Link to the code that reproduces this issue

https://github.com/avitorio/outstatic

To Reproduce

  1. Clone the monorepo above
  2. Set up the project on Vercel with the following settings:
Build command:     cd ../.. && pnpm turbo run build --scope=outstatic-dev-blog --include-dependencies --no-deps
Root directory:    apps/dev
CleanShot 2024-02-22 at 22 20 55@2x

Go to /apps/dev/package.json and set next: 14.0.4-canary.36

run pnpm install
Deploy it on vercel

You'll get:

Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size
21:48:24.910

Current vs. Expected behavior

Current: Build fails on Vercel when triggered via GitHub if next: ^14.0.4-canary.36 and above
Expected: Build completes on Vercel on next: ^14.0.4-canary.35

Provide environment information

Node: 18 on Vercel

Which area(s) are affected? (Select all that apply)

Turbopack (--turbo)

Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

Additional context

I tested my reproduction against different canary releases, and the first one that introduced the bug was "14.0.4-canary.36", since reverting to "14.0.4-canary.35" works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.lockedstaleThe issue has not seen recent activity.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions