-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Labels
Description
Apologies if this is the wrong repo (as opposed to yarnpkg/berry).
Repro:
- check out https://github.com/tpict/vscode-eslint-pnp-flat-repro
- run
yarn lint
and observe various lint errors - open one of the failing files in VSCode
- check ESLint output; observe no squiggly lines even though the library & config are successfully loaded
[Info - 12:24:13 PM] ESLint server is starting.
[Info - 12:24:14 PM] ESLint server running in node v20.18.3
[Info - 12:24:14 PM] ESLint server is running.
[Info - 12:24:15 PM] ESLint library loaded from: /Users/tpict/Projects/eslint-example/.yarn/sdks/eslint/lib/api.js
loaded the config!
Then update the nodeLinker
setting:
diff --git a/.yarnrc.yml b/.yarnrc.yml
index a398e49..91b1101 100644
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -2,4 +2,4 @@ compressionLevel: mixed
enableGlobalCache: false
-nodeLinker: pnp
+nodeLinker: node-modules
and run yarn
again, restart VSCode, observe squiggly lines in failing files.
#1710 sounds like a similar issue, but since this was filed the Yarn SDKs have been updated with the exports mentioned.
Jazastry