Closed fweth closed 3 months ago
I'm not sure I understand, even though this is a pre tag, this creates an expression, so it's normal for the extension to try to parse it as TypeScript. Astro itself will also do that, pasting your snippet in a Astro file, you'll get an error like Expected "}" but found "i"
or similar.
You might be looking for the is:raw
attribute.
Describe the Bug
When I have this in an
.astro
fileI see TS errors like
Cannot find name 'int'. Did you mean 'Intl'?ts(2552)
. When I switch the language mode to HTML, those errors disappear.Steps to Reproduce
Paste some (faulty) code inside
<pre>
tags in some.astro
file.