Skip to content

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

@auvred

Description

@auvred

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions