You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On debugging, I found that prettier is not able to locate the node_module folder for auto-loading plugins when using pnpm.
In the code for loading plugins, the current directory is identified as follows when the code works properly: __dirname: “/Users/umarxxxx/Projects/svelte-lexical/node_modules/prettier”
And the folder for auto-loading modules is found as: autoLoadDir: ”/Users/umarxxxx/Projects/svelte-lexical/"
In case of pnpm, the current directory is: __dirname: “/Users/umarxxxx/Projects/svelte-lexical/node_modules/.pnpm/[email protected]/node_modules/prettier”
From this directory, prettier is not able to figure out autoLoadDir.
Here are the methods called from prettier codebase for loading prettier plugins and identifying the directories.
The prettier plugin
prettier-plugin-organize-attributes
is not working.The text was updated successfully, but these errors were encountered: