Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get "Cannot read property 'rulesMeta' of undefined" when using eslint-formatter-rdjson #150

Open
fl-increcio opened this issue Oct 24, 2022 · 1 comment

Comments

@fl-increcio
Copy link

Hello,

I am setting up a github action using reviewdog/action-eslint@v1, but I'm stuck on this error :

Cannot read property 'rulesMeta' of undefined
  TypeError: Cannot read property 'rulesMeta' of undefined
      at /home/runner/work/_actions/reviewdog/action-eslint/v1/eslint-formatter-rdjson/index.js:162:22
      at Array.forEach (<anonymous>)
      at /home/runner/work/_actions/reviewdog/action-eslint/v1/eslint-formatter-rdjson/index.js:150:21
      at Array.forEach (<anonymous>)
      at module.exports (/home/runner/work/_actions/reviewdog/action-eslint/v1/eslint-formatter-rdjson/index.js:146:11)
      at printResults (/home/runner/work/test-th/test-th/node_modules/eslint/lib/cli.js:91:20)
      at Object.execute (/home/runner/work/test-th/test-th/node_modules/eslint/lib/cli.js:201:17)
      at Object.<anonymous> (/home/runner/work/test-th/test-th/node_modules/eslint/bin/eslint.js:74:28)
      at Module._compile (internal/modules/cjs/loader.js:1085:14)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
  reviewdog: parse error: failed to unmarshal rdjson (DiagnosticResult): proto: syntax error (line 1:1): unexpected token 

Maybe we could check if 'data' is not null in this condition.

image

in eslint-formatter-rdjson\index.js

@qschmick
Copy link

I was having this issue also. I reran the install: yarn add babel-eslint -D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants