We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3d2250 commit 7b858daCopy full SHA for 7b858da
1 file changed
packages/lit-html/src/lit-html.ts
@@ -518,9 +518,10 @@ const tag =
518
if (
519
values.some((val) => (val as {_$litStatic$: unknown})?.['_$litStatic$'])
520
) {
521
- console.warn(
+ issueWarning(
522
+ '',
523
`Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\n` +
- `Please use the static 'html' template. See https://lit.dev/docs/templates/expressions/#static-expressions`
524
+ `Please use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions`
525
);
526
}
527
0 commit comments