Can't push using SourceTree because of Syntax Errors

bennitemin18 December 4, 2017

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

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2017

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
TAGS
AUG Leaders

Atlassian Community Events