-
-
Notifications
You must be signed in to change notification settings - Fork 28
Description
I'm not able to use VScode-linter-xo in my environment.
Environment
Yarn 4.9.2 in Plug’n’Play (PnP) mode.
Installed xo using yarn add -D xo.
yarn xo works flawlessly in terminal.
Error in VSCode
With the vscode-linter-xo extension, I get the following error:
Failed to resolve module: xo. Ensure that xo has been installed.
Troubleshooting steps tried
Ran yarn dlx @yarnpkg/sdks vscode to generate Yarn SDKs for VSCode, but the error remains.
Installed and attempted using pnpify with settings pointing to .vscode/pnpify, but xo is still not detected in VSCode.
Additional context
I also use Prettier with the official VSCode Prettier extension, which works fine under PnP—no module resolution issues there.
🔗 Reference to existing issue (#71)
I noticed that issue #71 – “Fails to load when XO is installed using yarn PnP” is still open, created over 5 years ago. It describes the same behaviour and recommends using Yarn’s pnpify or allowing a user-settable xo.path in settings to support PnP.
Questions and Proposals
Has there been any progress or plans to support Yarn PnP natively in recent versions?
With major updates (Yarn v3/v4, newer VSCode, React + Vite), compatibility could now be feasible.
Thank you for your efforts on this extension. Let me know how I can support a fix or workaround