Skip to content

Local Prettier < 1.8.0 throws prettierInstance.getSupportInfo is not a function #710

@JHilker

Description

@JHilker

Connected to issues: #704 #705

Connected to PR: #706

Currently running version >=1.8.1 of prettier-vscode throws prettierInstance.getSupportInfo is not a function when run with a local version of Prettier < 1.8.0. This is due to a switch in #706 to use the local version of Prettier to determine the valid parsers, due to an upstream issue in Prettier where getSupportInfo returns the wrong information regarding the babel/babylon parser: prettier/prettier#5822

Workaround:

Either:

  • Upgrade your local version of Prettier to be >= 1.8.0
  • Downgrade prettier-vscode to 1.7.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    lockedLocked due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions