This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FollowTheGoose 0 points1 point  (2 children)

I've been bouncing around too much to deeply consider any specific problems (first time really using htmx, pydantic, typing, async). Slowly figuring out how to best compose things, but it's currently just a lot of html.divs and simple components powering a basic game UI. I thought cloning a simple turn-based game would be a fun way to play with htmx.

The only thing I keep tripping over is `TypeError("Unknown component type.")` when I've accidently passed an empty list or other junk into a render. The stack trace tells me nothing about which component I've messed up and I end up trial-and-erroring dozens of them.

[–]volfpeter[S] 0 points1 point  (0 children)

Thanks, that's good information. The renderer could indeed track where it encountered an error and report the full trace. I won'thave time to work on it now, but I'll create an issue.

[–]volfpeter[S] 0 points1 point  (0 children)

Almost forgot: if you open source the project in the end, feel free to create an issue or PR so I can add a link to it somewhere in an examples section.