TS1109: Expression expected - in CI
The parser reached a position where it needed an expression but found something else.
What this error means
Type-checking fails with TS1109 at a spot where the code is incomplete or malformed.
tsc
src/calc.ts(7,12): error TS1109: Expression expected.Common causes
How to fix it
Complete or correct the expression
- Fix the malformed statement at the reported line/column
Check for leftover conflict markers
- Search for <<<<<<< or >>>>>>> from an unresolved merge
shell
grep -rn "<<<<<<<" srcHow to prevent it
- Resolve merge conflicts fully and run tsc --noEmit in CI so parse errors fail fast.
Frequently asked questions
What causes "TS1109 expression expected"?
Type-checking fails with TS1109 at a spot where the code is incomplete or malformed.
How do I fix TS1109 expression expected?
Complete or correct the expression
Related guides
TS1005: ';' expected (or other token) - in CIFix "error TS1005: ';' expected" (and other "X expected" variants) when tsc runs in CI - a syntax error or a…
TS1128: Declaration or statement expected - in CIFix "error TS1128: Declaration or statement expected" when tsc runs in CI - a stray token, an extra brace, or…
svelte-check "found N errors" fails the build in CIFix svelte-check "svelte-check found N errors and M warnings" in CI - the type and template checker found rea…