Yarn PnP not compatible with Prettier 3 in VSCode #5576
-
I tried upgrading to Prettier 3, but the prettier-vscode extension no longer works, presumably due to Prettier switching to ESM in v3. I verified that it works when using a normal The error I'm getting:
It seems like this dynamic import is giving it trouble. Any help would be appreciated, I'm not sure whether this is technically considered a bug or not. |
Beta Was this translation helpful? Give feedback.
Answered by
merceyz
Jul 13, 2023
Replies: 1 comment 1 reply
-
You'll have to unplug prettier so that Node.js can access the files without our ESM loader. yarn unplug prettier |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Methuselah96
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll have to unplug prettier so that Node.js can access the files without our ESM loader.