Skip to content

Error while using this github action (ErrorEXError [JSONError]: Unexpected token) #433

@mys2kor

Description

@mys2kor

I am trying to use this action in my private repo but I run into an error like below during the execution of the workflow. The error is very long. Here I am providing the gist of it.

grafik

The end of the error is like so

ErrorEXError [JSONError]: Unexpected token } in JSON at position 142 while parsing near '...ear --port 8000",  },  "devDependencie...' in package.json
    at e.exports (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:82368)
    at parse (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:51821)
    at Function.e.exports.sync (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:51924)
    at Function.sync (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:83199)
    at Signale.get packageConfiguration [as packageConfiguration] (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:116193)
    at new Signale (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:115057)
    at Object.528 (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:88739)
    at __nccwpck_require__ (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:517248)
    at Object.5140 (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:1:142510)
    at __nccwpck_require__ (/home/runner/work/_actions/EndBug/add-and-commit/v9/lib/index.js:7:517248) {
  fileName: 'package.json'
}

Can you please let me know how to get this working? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: pendingMore info is needed before deciding what to do

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions