Cloudflare + Solid-js hydration / build errors. #263
Labels
- P4: important
Violate documented behavior or significantly improves performance (priority)
pkg: cloudflare
upstream
Astro Info
If this issue only occurs in one browser, which browser is a problem?
All
Describe the Bug
Can't run wrangler pages dev ./dist and get a reliable build when a component has any hydration directive that is not client:only="solid-js". The logs say, "✘ [ERROR] Uncaught (in response) TypeError: Cannot set properties of undefined (setting 'noHydrate')".
Min repro attached due to same error as reported by a member in discord. In my other project, I had @astrojs/solid-js 4.1.0 , @astrojs/cloudflare 10.2.4, astro 4.8.3 , solid-js 1.8.15. I downgraded to @astrojs/cloudflare 9+, but things reliably broke on any 10+ cloudflare adapter.
Discord link for futher viewing.
https://discord.com/channels/830184174198718474/1239920931510554655/1239920931510554655
What's the expected result?
Any hydration directive should build and work.
Link to Minimal Reproducible Example
https://github.com/wkelly17/astro-min-repro
Participation
The text was updated successfully, but these errors were encountered: