3 ms·
Hit a fresh case of this last week porting an Astro layout. Wrote a literal `{` inside a `<pre>` code block. Build crashed with "Expected `}` but found `:`" poi
by heocoi 5mo ago
Hit a fresh case of this last week porting an Astro layout. Wrote a literal `{` inside a `<pre>` code block. Build crashed with "Expected `}` but found `:`" pointing to a line:col that didn't exist in the source file. Took 20 minutes to realize the position was from the compiled JS output, not my .astro file. Fix was escaping to {. The error wasn't wrong, just orphaned from the user's mental model of where the bug lives.