Skip to content

SyntaxError: Unexpected token } #266

@jacky810124

Description

@jacky810124

I got an error when I type git cz in my git repo.

How can I fix it?

 git cz
undefined:25
  }
  ^

SyntaxError: Unexpected token }
    at Object.parse (native)
    at getContent (/usr/local/lib/node_modules/commitizen/dist/configLoader/getContent.js:47:28)
    at loader (/usr/local/lib/node_modules/commitizen/dist/configLoader/loader.js:39:44)
    at Object.load (/usr/local/lib/node_modules/commitizen/dist/commitizen/configLoader.js:17:35)
    at Object.bootstrap (/usr/local/lib/node_modules/commitizen/dist/cli/git-cz.js:26:70)
    at Object.<anonymous> (/usr/local/lib/node_modules/commitizen/bin/git-cz.js:2:34)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions