[Bug?]: dev hmr error: "template2 is not a function"
Open
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:
- npm init solid@latest
- select TypeScript, notes
- npm i
- npm run dev, open browser
- modify src/routes/(home).tsx, e.g. add extra "!"
- observe browser state
Context 🔦
No response
Your environment 🌎
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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