template2 is not a function
Hi there, have anyone experienced this issue before?
3 Replies
its a fresh project made with solidstart
code of app.tsx
(i only changed main -> body)
the template already has a body, so you're attempting to create a document with 2 body elements.
if you check entry-server.tsx, you will see this
This is what your document html structure that gets served will be. Your App component, gets mounted inside of the
div#app
. So by returning a body element in your App
component, you're attempting to embed a second <body>
inside of the div, which is not a valid HTML document.Ah
Didn't notice
Thanks