From bc4bd2de734262f10f240ce367629aac96ab656d Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Wed, 12 Aug 2026 03:40:53 -0700 Subject: [PATCH] fix: use @solidjs/web as jsxImportSource in solid-v2 jsconfig The JS variants of the Solid 2.0 templates were getting a jsconfig.json with jsxImportSource "solid-js", but the templates' own tsconfig.json declares "@solidjs/web" (Solid 2.0's JSX runtime lives there, and vite-plugin-solid 3.x compiles against it). Match the templates. Raised by @brenelz in #82 review. Co-authored-by: Cursor --- packages/create/src/utils/constants.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/create/src/utils/constants.ts b/packages/create/src/utils/constants.ts index f7bac15..b973bf3 100644 --- a/packages/create/src/utils/constants.ts +++ b/packages/create/src/utils/constants.ts @@ -38,11 +38,12 @@ export const JS_CONFIG = { }, }; -// The solid-v2 templates don't use the `~/*` path alias +// The solid-v2 templates don't use the `~/*` path alias, and Solid 2.0's JSX +// runtime lives in `@solidjs/web` (matches the templates' tsconfig.json) export const JS_CONFIG_SOLID_V2 = { compilerOptions: { jsx: "preserve", - jsxImportSource: "solid-js", + jsxImportSource: "@solidjs/web", }, };