Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Prettier 3.7.0 broke VSCode integration #18353

@shinebayar-g

Description

@shinebayar-g

Environments:

  • Prettier Version: 3.7.1
  • Running Prettier via: VSCode
  • Runtime: v24.11.1
  • Operating System: Linux
  • Prettier plugins (if any): prettier-plugin-svelte

Steps to reproduce:

  1. Have a typescript project in the subfolder. Install prettier and prettier configuration there.
  2. Open the entire repository in VSCode
  3. Run `Format Document With... -> Prettier

Repo: https://github.com/shinebayar-g/prettier-3.7.0-bug-reproduce

Expected behavior: Prettier formats the code properly.

Actual behavior: Getting this error

Cannot find package 'prettier-plugin-svelte' imported from /path/to/the/root/noop.js

It seems prettier is looking for plugins from the root of the repository not in the correct subfolder where it's installed.

Prettier 3.6.2 is working fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:editor supportIssues about tools Prettier provides for use inside editor integrations.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions