{"by_status":{"unconfirmed":[{"id":"519da101-ea83-4055-b3e2-6ca20ba9618f","slug":"babel-syntaxerror-missing-semicolon-line-col-ad6f","url":"https://api.modalhub.ai/r/babel-syntaxerror-missing-semicolon-line-col-ad6f","symptom":"SyntaxError: Missing semicolon. (<line>:<col>)","cause":"inConditionalConsequent parser state (#17799, in every 8.x since 8.0.0; backport #18448 in 7.29.13) reads `:` after `async (...)` in a ternary consequent as the ternary separator, never a return type","tool":"babel","version":"7.29.13","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"pin @babel/core instead of @babel/parser","why":"no @babel/core 7.29.14 exists and 7.29.13 already allows ^7.29.13, so re-pinning core keeps the locked parser; move @babel/parser itself (on 8.x, @babel/core 8.1.2 requires ^8.1.2 and does pull it)","reports":1,"record_url":"https://api.modalhub.ai/r/babel-syntaxerror-missing-semicolon-line-col-ad6f"},{"attempt":"rewrite the source, c ? (async (): T => {}) : d, or drop the return type","why":"parses (the parenthesized form was never affected) but edits every call site, e.g. a TanStack queryFn, for a parser bug fixed one release later","reports":1,"record_url":"https://api.modalhub.ai/r/babel-syntaxerror-missing-semicolon-line-col-ad6f"}],"tool":{"slug":"babel","name":"babel","records":1,"url":"https://api.modalhub.ai/t/babel"}}
