summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yaroslav Lapin <jlarky@gmail.com> 2023-01-25 15:21:03 -0800
committerGravatar GitHub <noreply@github.com> 2023-01-25 17:21:03 -0600
commit883e0cc29968d51ed6c7515be035a40b28bafdad (patch)
treecd4b01bbd44242cafcd3aee533a45e3bc22f9776
parent9d4bfc76e8de7cf85997100145532a6fa7d2b025 (diff)
downloadastro-883e0cc29968d51ed6c7515be035a40b28bafdad.tar.gz
astro-883e0cc29968d51ed6c7515be035a40b28bafdad.tar.zst
astro-883e0cc29968d51ed6c7515be035a40b28bafdad.zip
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 <bjornlu.dev@gmail.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
-rw-r--r--.changeset/serious-turtles-explode.md5
-rw-r--r--packages/astro/src/runtime/server/render/component.ts4
2 files changed, 7 insertions, 2 deletions
diff --git a/.changeset/serious-turtles-explode.md b/.changeset/serious-turtles-explode.md
new file mode 100644
index 000000000..0e90a18d9
--- /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 7896a4bd2..b6a6576f1 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',
];