Skip to content

fix: handle missing pnpapi#1

Closed
stephank wants to merge 2 commits into
merceyz:merceyz/pnp-4.9from
stephank:fix-missing-pnpapi
Closed

fix: handle missing pnpapi#1
stephank wants to merge 2 commits into
merceyz:merceyz/pnp-4.9from
stephank:fix-missing-pnpapi

Conversation

@stephank
Copy link
Copy Markdown

@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
Copy Markdown
Author

Test results look the same before and after this change.

@merceyz
Copy link
Copy Markdown
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