swift icon indicating copy to clipboard operation
swift copied to clipboard

Cannot run danger-swift local

Open rarias84 opened this issue 2 years ago • 2 comments

I could run swift run danger-swift local --base dev without problems but now when I run the command I get the following

Error: TypeError: Cannot read property 'metadata' of undefined at apiForDSL (/snapshot/danger-js/distribution/runner/jsonToDSL.js:133:78) at /snapshot/danger-js/distribution/runner/jsonToDSL.js:84:23 at step (/snapshot/danger-js/distribution/runner/jsonToDSL.js:52:23) at Object.next (/snapshot/danger-js/distribution/runner/jsonToDSL.js:33:53) at /snapshot/danger-js/distribution/runner/jsonToDSL.js:27:71 at new Promise () at /snapshot/danger-js/distribution/runner/jsonToDSL.js:23:12 at jsonToDSL (/snapshot/danger-js/distribution/runner/jsonToDSL.js:77:49) at /snapshot/danger-js/distribution/commands/utils/runDangerSubprocess.js:171:68 at step (/snapshot/danger-js/distribution/commands/utils/runDangerSubprocess.js:44:23)

rarias84 avatar Jan 12 '23 12:01 rarias84

It seems this error is coming from Danger-JS 🤔

f-meloni avatar Jan 12 '23 12:01 f-meloni

I use danger version 11.2.1 and danger swift 3.15.0 . I can see a danger-response.json but cannot see the report in the terminal just get the error above

rarias84 avatar Jan 12 '23 13:01 rarias84