-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
- P2: has workaroundBug, but has workaround (priority)Bug, but has workaround (priority)feat: devRelated to `astro dev` CLI command (scope)Related to `astro dev` CLI command (scope)feat: i18nRelated to internalization (scope)Related to internalization (scope)requires breaking changeFixing this bug or adding this feature would require breaking changes. For PRs, use "semver: major"Fixing this bug or adding this feature would require breaking changes. For PRs, use "semver: major"
Milestone
Description
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.
JoostKersjes, ocavue, osiegmar, CodePsy-2001, JanSeW and 2 more
Metadata
Metadata
Assignees
Labels
- P2: has workaroundBug, but has workaround (priority)Bug, but has workaround (priority)feat: devRelated to `astro dev` CLI command (scope)Related to `astro dev` CLI command (scope)feat: i18nRelated to internalization (scope)Related to internalization (scope)requires breaking changeFixing this bug or adding this feature would require breaking changes. For PRs, use "semver: major"Fixing this bug or adding this feature would require breaking changes. For PRs, use "semver: major"