Skip to content

fix: handle missing pnpapi #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

stephank
Copy link

@stephank stephank commented Nov 15, 2022

I'm using a global installation of typescript-language-server that uses PnP, but working on a project that uses Yarn with nodeLinker: node-modules and a local TypeScript installation. In this case, process.versions.pnp is set, but findPnpApi will return null for project files.

I have a bunch of failing tests on macos all related to file watching. I assume that's unrelated to this, but will check.

@stephank
Copy link
Author

Test results look the same before and after this change.

@merceyz
Copy link
Owner

merceyz commented Jan 20, 2023

I wasn't watching this repo and therefore missed this PR so sorry about that.
Due to the conflict I've cherry picked your changes to 599a591 and backported it to >=4.8.1-rc.
I'll include this change in the next compat patch update in Yarn, thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants