Closed tstewart-klaudhaus closed 4 years ago
In lit-html the parameter to render can be a string. This is not the case in lit-html-server.
lit-html
render
lit-html-server
To reproduce:
import { renderToString } from "@popeindustries/lit-html-server" const result = await renderToString("test string")
Expected result to be equal to "test string".
Actual result is an error:
Error: unknown chunk type: test string
Yes, this was a feature recently added to lit-html. Should be relatively easy to add here. I'll see what I can do
https://github.com/popeindustries/lit-html-server/releases/tag/3.1.0
Thank you, works well.
In
lit-html
the parameter torender
can be a string. This is not the case inlit-html-server
.To reproduce:
Expected result to be equal to "test string".
Actual result is an error:
Error: unknown chunk type: test string