-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
type:editor supportIssues about tools Prettier provides for use inside editor integrations.Issues about tools Prettier provides for use inside editor integrations.
Description
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:
- Have a typescript project in the subfolder. Install prettier and prettier configuration there.
- Open the entire repository in VSCode
- 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.
ezzatron, shynome, yschroe, warkanum, renomureza and 26 more
Metadata
Metadata
Assignees
Labels
type:editor supportIssues about tools Prettier provides for use inside editor integrations.Issues about tools Prettier provides for use inside editor integrations.