Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Prettier-atom failed: Couldn't resolve parser 'postcss' #718

@robbymarston

Description

@robbymarston

Prettier is using the bundled version (1.18.2) instead of the version from /node_modules. I have confirmed prettier is present in the node_modules directory and in both package.json and package-lock.json (see screenshots). This is causing parser resolution errors such as this one downstream.

Screen Shot 2020-03-31 at 4 36 10 PM
Screen Shot 2020-03-31 at 4 35 34 PM

Atom version: 1.45.0
prettier-atom version: 0.58.2
prettier: bundled
prettier version: 1.18.2
prettier-eslint version: 9.0.1
prettier-atom configuration: {
  "formatOnSaveOptions": {
    "enabled": true,
    "isDisabledIfNotInPackageJson": true,
    "isDisabledIfNoConfigFile": true,
    "respectEslintignore": true,
    "showInStatusBar": false,
    "excludedGlobs": [],
    "whitelistedGlobs": [],
    "ignoreNodeModules": true
  },
  "useEslint": true,
  "useStylelint": true,
  "useEditorConfig": true,
  "prettierEslintOptions": {
    "prettierLast": false
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions