template2 is not a function

Hey! I've been struggling a bit with a weird hydration error for a while and someone else posted this: https://discord.com/channels/722131463138705510/1295459352555294800. I get the same error but I don't have any duplicate <body> tags. Can we please reopen this or what would you guys suggest? I investigated it down to that in packages/solid/web/src/index.ts:136, we call getNextElement() with no arguments, but getNextElement from dom-expressions end up calling template() where template is it's first and only argument, here undefined. Is there a mismatch in solidjs 1.0.9 and dom-expressions?
No description
2 Replies
BackRunner
BackRunner2mo ago
Hi there, have you solved the issue? I met a similar situation here and I cannot figure out what's wrong, I checked the HTML content and ensured that there was only one body tag, but it just kept throw the "template2 is not a function" error occasionally. ---- Edited. I fixed the issue on my side, if you have a node that wrapped by Show by will never render in the real process, it will cause the issue because of the node missing.
Kim Johannsen
Kim JohannsenOP2w ago
Yes, still an issue. Get it quite often and I simply click "Reset error" and I can continue like nothing ever happened. But the next time I refresh my page, I get the template2 issue again.
Want results from more Discord servers?
Add your server