graphql-for-vscode icon indicating copy to clipboard operation
graphql-for-vscode copied to clipboard

doesn't work with Yarn PNP

Open diminutivesloop opened this issue 4 years ago • 0 comments

I'm working in a project that recently converted to Yarn plug'n'play for installing dependencies and this extension has started failing with the following error message:

[2021-09-24T12:12:37.989] [INFO] gql-language-server - running in node v14.16.0 (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer))
[2021-09-24T12:12:37.993] [INFO] load-gql-service - loading @playlyfe/gql...
[2021-09-24T12:12:37.994] [INFO] load-gql-service - @playlyfe/gql not found in path /Users/nathanielpalmer/projects/ss-ecomm-frontend
[2021-09-24T12:12:37.995] [INFO] load-gql-service - Skipping auto download @playlyfe/gql (autoDownloadGQL: false).
[Error - 12:12:38 PM] Server initialization failed:
Request initialize failed with message: Cannot find module '@playlyfe/gql'
Require stack:
- /Users/nathanielpalmer/projects/ss-ecomm-frontend/noop.js
[2021-09-24T12:12:38.821] [INFO] gql-language-server - server connection shutting down

I'm assuming I need to set graphqlForVSCode.nodePath in VSCode settings but I'm not sure what I should set it to, since I can't figure out where @playlyfe/gql is actually installed.

diminutivesloop avatar Sep 24 '21 16:09 diminutivesloop