adrian-gierakowski / yarn-pnp-typescript-lsp-error

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug repro: yarn 4 + pnp + typescript 5.3 + workspace dep with peerDependencies

Setup

Install node, yarn and vscodium (or vscode)

Following version have been used to when creating this report:

node --version
# v18.18.2
yarn --version
# 4.0.2
codium --version
# 1.84.2

The easiest way to install everything is:

  1. Install nix:
sh <(curl -L https://nixos.org/nix/install) --daemon
  1. Run the following from the root of the repo
nix develop

This will drop you in a shell with all binary deps available on PATH.

Install node deps

yarn

Reproduce the bug

  1. Open project in vscod(e|ium)

    codium .

    or if you have vscode installed

    code .
  2. navigate to packages/one/index.ts and follow instruction in the comments.

    ⚠️ you might need to accept a prompt in the bottom right corner of your editor to accept the use of project local TypeScript version.

About


Languages

Language:Nix 50.9%Language:TypeScript 49.1%