Skip to content

Turbopack build failed #8159

@yoshi6jp

Description

@yoshi6jp

Issue Description

In Next.js v16, turbopack became the default.

Building with turbopack in 5.1.0 produces the following error.
There is no issue in 5.0.

> Build error occurred
Error: Turbopack build failed with 1 errors:
./node_modules/.pnpm/@[email protected][email protected]/node_modules/@apollo/server/dist/cjs/incrementalDeliveryPolyfill.js:44:75
Module not found: Can't resolve '@yaacovcr/transform'
  42 | async function tryToLoadLegacyExecuteIncrementally() {
  43 |     try {
> 44 |         const transform = await Promise.resolve().then(() => __importStar(require('@yaacovcr/transform')));      
     |                                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  45 |         legacyExecuteIncrementally = transform.legacyExecuteIncrementally;
  46 |     }
  47 |     catch {

#8004
This issue is likely related.

Link to Reproduction

https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack

Reproduction Steps

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions