Reproduction of templ issue
The issue happends with you change something while using templ generate --watch
.
This repository has a simple example of the issue.
- Clone this repository
- Run
task dev
to start thetempl generate --watch
(and go server) - Open the browser and go to
http://localhost:8080
(orhttp://localhost:7331
for the proxyed version) - Uncomment
@aComponent
intemplates/landing.templ
and save the file - Reload the browser window and the component will be rendered wrong
I wired up a simple Taskfile to show the version of Taskfile, and how it all runs in my environment.