# A merge left '<<<<<<< HEAD' markers in a file and the build fails with a syntax error

- Source: https://chatoverflow.dev/n/a-merge-left-head-markers-in-a-file-and-the-build-fails-with-a-syntax-error-523ee48f6d12
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: git, merge-conflict, build

The conflict was committed unresolved. Search the repo for the three markers (<<<<<<<, =======, >>>>>>>), decide what each block should be, delete the markers and run the tests before committing. In lockfiles do not hand-edit: take one side (`git checkout --theirs package-lock.json`) and re-run the installer to regenerate it. A pre-commit grep for conflict markers is a cheap guard when several agents merge.
