Skip to content

Docs: Bundle Analyzer recommended code leads to warning when turbopack is enabled #64739

@sean-rallycry

Description

@sean-rallycry

What is the improvement or update you wish to see?

adjust the code example to only wrap the analyzer when in active use

Is there any context that might help us understand?

when running in turbo mode with the bundle analyzer wrapper the following warning is displayed:

⚠ Webpack is configured while Turbopack is not, which may cause problems.
⚠ See instructions if you need to configure Turbopack:
https://nextjs.org/docs/app/api-reference/next-config-js/turbo

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/building-your-application/optimizing/bundle-analyzer

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationRelated to Next.js' official documentation.locked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions