-
-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to cache strings #940
Comments
Hey! Seems like templ creates The only reason of the problem I can think of is that maybe you were running |
That's right. We need to fix it so that the code is identical between dev and prod mode, with a runtime switch to change behaviour. I think I got it sorted in a branch last month: main...watch_mode_prod_mode_generate_same But I went on holiday, then got caught up in work projects, so I need to dust it off and check how far along I got. |
@a-h Do you want to have the same code in |
It would be to avoid problems caused by deploying watch mode code. There's no benefit in a production scenario that I can think of. |
Sometimes I'm still getting the error message, but now restarting the app and templ seems to be enough to fix the thing(now |
Discussed in #869
Originally posted by nexovec August 2, 2024
I'm getting this weird message rendered instead of my templates.
templ: failed to cache strings: templ: failed to stat /app/internal/templates/v1/common_templ.txt: stat /app/internal/templates/v1/common_templ.txt: no such file or directory
I don't really know how to reproduce this or what it even means, but seems that this sometimes happens when I use
templ generate
andtempl generate --watch
interchangeably. I don't use any.txt
file anywhere and it's been working just fine until you added some sort of caching for watchmode. What is this?There are other people that had this issue in the discussion.
The text was updated successfully, but these errors were encountered: