solidjs / solidjs/solid-start

[Bug?]: dev hmr error: "template2 is not a function"

Open
#1,930 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

upstream / external vite-plugin-solid
Dominant language
TypeScript
Stars
5.9k
Forks
426
Avg merge
1d 3h
Merged PRs (30d)
11

Description

Duplicates
  • I have searched the existing issues
Latest version
  • I have tested the latest version
Current behavior 😯

npm run dev causes HMR error for notes template

Expected behavior 🤔

no error

Steps to reproduce 🕹

Steps:

  1. npm init solid@latest
  2. select TypeScript, notes
  3. npm i
  4. npm run dev, open browser
  5. modify src/routes/(home).tsx, e.g. add extra "!"
  6. observe browser state
Context 🔦

No response

Your environment 🌎

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the notes example using the listed npm init, npm run dev, and route-edit steps. Start with examples/notes and src/routes/(home).tsx, then trace the HMR error reported as "template2 is not a function". Done means editing the route no longer produces the browser error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.