Can't push using SourceTree because of Syntax Errors

Hey everyone,

it seems like I'm not able to push updates of my code because SourceTree is giving me syntax errors although the code is working without any problems. 


ERROR: /src/app/app-routing.module.ts[16, 17]: trailing whitespace

ERROR: /src/app/app.module.ts[84, 14]: Missing trailing comma

ERROR: /src/app/app.module.ts[21, 53]: comment must start with a space

Lint errors found in the listed files.


> husky - pre-push hook failed (add --no-verify to bypass)

> husky - to debug, use 'npm run prepush'

Completed with errors, see above

If you have any advice/help I'd be really thankful.


Kind regards

1 answer

0 vote


It looks like you have a git 'pre-push' hook configured and that is blocking the push.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

647 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you