Skip to content

Missing ESM dependencies in standalone bundle#560

Description

@PavelVanecek

馃憢 Hello from Recharts!

We have this problem where Recharts fails to build using next.js standalone.

The situation is:

The cause seems to be that the Recharts code is referencing redux/toolkit ESM bundle but those files are not included in the standalone build. Copying the appropriate files to the standalone folder fixes it.

Also adding exports to Recharts package.json would fix this - but it breaks so many other places that we can't do that just yet.

Here's a summary with more details: recharts/recharts#6117 (comment)

Here's a reproduction: recharts/recharts-integ#88

Do you have any recommendation what can we do to have everything compile in nextjs? Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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