These category of errors are interesting. The actual source of the error is with the closing tag, which is presented last, but pointing to the first tag gives you way more context. Having it in the reverse order is confusing and reads poorly.
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This is cool, although, I feel like I generally only run into missing JSX tag errors when the editor fails at renaming both opening and closing tags at the same time. Since the problem in the code has been successfully identified, would it be possible to write an auto-fix?
-
It should be autofixable by default since the parser has recovery conditions to always produce an AST, so it's just like formatting a normal file.
End of conversation
New conversation -
-
-
Got some good feedback from
@jamiebuild. Given the code: <Foo> <Bar> </Foo> It's possible to make the error message more descriptive. In this case, Bar wasn't given the incorrect Foo tag. There just wasn't a closing tag at all. Handling this would cover 80% of cases.Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Just install Auto Closing Tag extension for Visual Studio Code amd it will never happen anymore.
- 5 more replies
New conversation -
-
-
Dude. I want this so bad. I'm thinking of all the beginners I teach

-
Dude. I want this so bad. I’m thinking of my experienced ass.
End of conversation
New conversation -
-
-
Imagine how much trouble this will save me


Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Awesome! This is on-par with Rust
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 