From 883e0cc29968d51ed6c7515be035a40b28bafdad Mon Sep 17 00:00:00 2001 From: Yaroslav Lapin Date: Wed, 25 Jan 2023 15:21:03 -0800 Subject: [PATCH] change @astrojs/solid to @astrojs/solid-js (#5971) * change @astrojs/solid to @astrojs/solid-js @astrojs/solid package doesn't exist * Create serious-turtles-explode.md * Update .changeset/serious-turtles-explode.md Co-authored-by: Bjorn Lu Co-authored-by: Nate Moore Co-authored-by: Bjorn Lu --- .changeset/serious-turtles-explode.md | 5 +++++ packages/astro/src/runtime/server/render/component.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/serious-turtles-explode.md diff --git a/.changeset/serious-turtles-explode.md b/.changeset/serious-turtles-explode.md new file mode 100644 index 0000000000..0e90a18d9f --- /dev/null +++ b/.changeset/serious-turtles-explode.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +improve error message: change @astrojs/solid to @astrojs/solid-js diff --git a/packages/astro/src/runtime/server/render/component.ts b/packages/astro/src/runtime/server/render/component.ts index 7896a4bd2c..b6a6576f17 100644 --- a/packages/astro/src/runtime/server/render/component.ts +++ b/packages/astro/src/runtime/server/render/component.ts @@ -31,12 +31,12 @@ function guessRenderers(componentUrl?: string): string[] { return ['@astrojs/vue']; case 'jsx': case 'tsx': - return ['@astrojs/react', '@astrojs/preact', '@astrojs/solid', '@astrojs/vue (jsx)']; + return ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js', '@astrojs/vue (jsx)']; default: return [ '@astrojs/react', '@astrojs/preact', - '@astrojs/solid', + '@astrojs/solid-js', '@astrojs/vue', '@astrojs/svelte', ];