← All tasks
javascriptprettier/eslint-plugin-prettier #671Not a task: already works

Random Eslint failure since upgrading to v5.2.1

envgap__prettier__eslint-plugin-prettier-671

01 / FAILURE SIGNATURE

As reported upstream

TypeError: Cannot read properties of undefined (reading 'message')
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
cd48a275f130e515f23cebdf7c6cb588b041cd64
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

prettier/eslint-plugin-prettier #671 · read the original issue
<!-- If you're reporting a bug, please provide the following information to make it easier to triage your issue. If you don't provide this information, your issue may be closed. If a question isn't applicable to your report, feel free to skip it/delete it. -->



**What version of `eslint` are you using?**

`8.57.0`

**What version of `prettier` are you using?**

Not installed as a dep of our project, but `npx prettier --version` returns `3.2.5`

**What version of `eslint-plugin-prettier` are you using?**

`5.2.1`

**Please paste any applicable config files that you're using (e.g. `.prettierrc` or `.eslintrc` files)**



**What source code are you linting?**

`.vue/.ts`

**What did you expect to happen?**

For the linter to succeed

**What actually happened?**

In our the CI build, we have (seemingly random - as repeated runs causes it to pass) errors during linting.

Local runs of the linter do not fail, only in the CI.



Our error looks something similar to this (I've removed some details to make it more readable) & mentions `synckit` which was upgraded in the latest version of `eslint-plugin-prettier`.



```

Oops! Something went wrong! :(



ESLint: 8.57.0



TypeError: Cannot read properties of undefined (reading 'message')

Occurred while linting /path/to/file.ts:2

Rule: "prettier/prettier"

    at syncFn (/....../node_modules/.pnpm/synckit@0.9.1/node_modules/synckit/lib/index.cjs:362:59)

    at Program (/....../node_modules/.pnpm/eslint-plugin-prettier@5.2.1_eslint-config-prettier@9.1.0_eslint@8.57.0__eslint@8.57.0_prettier@3.2.5/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js:191:32)

    at ruleErrorHandler (/....../node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/linter.js:1076:28)

    at /....../node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/safe-emitter.js:45:58

    at Array.forEach (<anonymous>)

    at Object.emit (/....../node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/safe-emitter.js:45:38)

    at NodeEventGenerator.applySelector (/....../node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/node-event-generator.js:297:26)

    at NodeEventGenerator.applySelectors (/....../node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/node-event-generator.js:326:22)

    at NodeEventGenerator.enterNode (/....../node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

    at CodePathAnalyzer.enterNode (/....../node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:803:23)

```



Downgrading to the previous version we had installed `5.1.3`, looks to fix the issue.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]