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

[prettier v3]: TypeError: Cannot read properties of null (reading 'map') #563

Closed
auvred opened this issue Jul 5, 2023 · 0 comments · Fixed by #564
Closed

[prettier v3]: TypeError: Cannot read properties of null (reading 'map') #563

auvred opened this issue Jul 5, 2023 · 0 comments · Fixed by #564

Comments

@auvred
Copy link
Contributor

auvred commented Jul 5, 2023

What version of eslint are you using?
8.44.0

What version of prettier are you using?
3.0.0

What version of eslint-plugin-prettier are you using?
5.0.0-alpha.1

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

// .eslintrc
{
  "plugins": ["prettier"],
  "rules": {
    "prettier/prettier": ["error"]
  }
}

What source code are you linting?
Any code, for example console.log(1)

What did you expect to happen?
Lint without errors

What actually happened?

$ pnpm eslint . 

Oops! Something went wrong! :(

ESLint: 8.44.0

TypeError: Cannot read properties of null (reading 'map')
    at loadPlugins (file:///my-project/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/index.mjs:21518:30)
    at Module.<anonymous> (file:///my-project/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/index.mjs:21781:9)
    at /my-project/node_modules/.pnpm/eslint-plugin-prettier@5.0.0-alpha.1_eslint@8.44.0_prettier@3.0.0/node_modules/eslint-plugin-prettier/worker.js:44:56
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

Successfully merging a pull request may close this issue.

1 participant