Skip to content

picocolors is being bundled into the browser #14692

@faisalagood

Description

@faisalagood

Astro Info

Astro                    v5.15.2
Vite                     v6.4.1
Node                     v25.1.0
System                   Windows (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/react (v4.4.1)

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Most likely related to #14615

Importing from astro:i18n in a client-side React component causes a hydration error:

[astro-island] Error hydrating: picocolors does not provide an export named 'default'

What's the expected result?

No hydration errors. Importing from astro:i18n in client components should work without leaking unnecessary dependencies into the browser bundle.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-enhowtqw

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P2: has workaroundBug, but has workaround (priority)feat: devRelated to `astro dev` CLI command (scope)feat: i18nRelated to internalization (scope)requires breaking changeFixing this bug or adding this feature would require breaking changes. For PRs, use "semver: major"

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions