[Bug?]: pnp nodeLinker causes 'package not found' with prettier plugins (uses import-meta-resolve) #6167
Closed
1 task done
Labels
bug
Something isn't working
Self-service
Describe the bug
When using the prettier-svelte-plugin with prettier, yarn berry can't find the plugin.
To reproduce
Environment
Additional context
The offending code in Prettier that's relevant is in
import-from-file.js
:This looks like it's going through some path to resolve the package that's not hitting the PnP monkey patch.
It looks like the problem might be fixable on the Prettier end, but I'm not sure how, and would like some help from the Yarn team for guidance. I'm willing to implement and test the fix for Prettier.
When I change the
nodeLinker
to bepnpm
and rerunyarn install
everything works fine.The text was updated successfully, but these errors were encountered: