Skip to content

Conversation

RyotaUshio
Copy link

@RyotaUshio RyotaUshio commented Oct 12, 2025

Hi, thank you for the development of TanStack, and as a Solid.js enthusiast, I'm very excited that TanStack Start supports Solid.js.
Following the docs, I ran pnpm create @tanstack/start@latest --framework Solid, and found some parts of the generated code emit errors.

These errors occur from some differences between React vs Solid. Specifically:

  • frameworks/solid/add-ons/start/assets/src/routes/demo.start.server-funcs.tsx.ejs: state is a signal accessor and needs to be called as a function (like state())
  • frameworks/solid/add-ons/start/assets/src/routes/index.tsx.ejs: In Solid, we use the <For> component to loop over arrays. Also, we don't need the key attribute in Solid; worse, it gives a type error because it's not part of the standard HTMLDivElement attributes.

I've fixes these issues, and updated a test snapshot accordingly.

I've checked that pnpm build and pnpm test succeeds. I've also locally ran the cli command (cli/create-tsrouter-app/dist/index.js) and verified that it produces corrected code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant