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. 

E.g.:

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

This widget could not be displayed.

Hi

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

https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

716 views 1 3
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