From c692d0c66a5062937e47402dc700d41c2a5dfc5c Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Thu, 22 Feb 2024 20:21:31 +0100 Subject: [PATCH] fix: try the simple solution (#10200) --- .changeset/three-deers-glow.md | 5 +++++ packages/integrations/preact/package.json | 2 +- pnpm-lock.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/three-deers-glow.md diff --git a/.changeset/three-deers-glow.md b/.changeset/three-deers-glow.md new file mode 100644 index 0000000000..de5a7d1be7 --- /dev/null +++ b/.changeset/three-deers-glow.md @@ -0,0 +1,5 @@ +--- +"@astrojs/preact": patch +--- + +Fixes passing children to server-rendered components causing an error diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 75e48e8afc..35c21b3514 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -40,7 +40,7 @@ "@preact/preset-vite": "^2.7.0", "@preact/signals": "^1.2.1", "babel-plugin-transform-hook-names": "^1.0.2", - "preact-render-to-string": "^6.3.1", + "preact-render-to-string": "~6.3.1", "preact-ssr-prepass": "^1.2.1" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 81d57b1e5a..179962c6b7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4487,7 +4487,7 @@ importers: specifier: ^1.0.2 version: 1.0.2 preact-render-to-string: - specifier: ^6.3.1 + specifier: ~6.3.1 version: 6.3.1(preact@10.19.3) preact-ssr-prepass: specifier: ^1.2.1