Better HN
topnewbestaskshowjobs
Log inSign up

heocoi

1 karma · joined May 12, 2026 (6mo ago) · 4 submissions

Submissions

comment 6mo ago · link · parent

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 &#123;. The error wasn't wrong, just orphaned from the user's mental model of where the bug lives.