Skip to content

Yarn PNP + flat config = successful start but no output #2015

@tpict

Description

@tpict

Apologies if this is the wrong repo (as opposed to yarnpkg/berry).

Repro:

[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions