-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[graphiql] v4.0.1 gives tonz of import errors when using php #3919
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
Comments
please provide runnable reproduction, so it could be fixed quickly |
Also, do you have graphiql/packages/graphiql/package.json Lines 54 to 55 in 2e14da2
|
yes, graphql is installed
…On Sun, May 4, 2025, 23:19 Dimitri POSTOLOV ***@***.***> wrote:
*dimaMachina* left a comment (graphql/graphiql#3919)
<#3919 (comment)>
Also, do you have graphql dependency installed? It's has a required
peerDependency
https://github.com/graphql/graphiql/blob/2e14da29fc7c25bf14b24b66bc2bc088f868458f/packages/graphiql/package.json#L54-L55
—
Reply to this email directly, view it on GitHub
<#3919 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACQAJLEHNBH5KNQ25X32W324Z75RAVCNFSM6AAAAAB4NFJH5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBZGQ2DGNRUHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
ok, please provide a reproduction, so I could take a look at your issue |
… On Mon, May 5, 2025 at 1:46 AM Dimitri POSTOLOV ***@***.***> wrote:
*dimaMachina* left a comment (graphql/graphiql#3919)
<#3919 (comment)>
ok, please provide a reproduction, so I could take a look at your issue
—
Reply to this email directly, view it on GitHub
<#3919 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACQAJPUXEZ5WO4RJ5I5SVT242RD5AVCNFSM6AAAAAB4NFJH5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBZGUYDCOJSGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks, interesting, setting |
Yup, that's because it's softly resolved from node_modules and the import is satisfied even though the library does not explicitly declare it but some other irrelevant library does. |
It seems that patching GraphiQL's |
The hotfix is packageExtensions:
"@graphiql/react@*":
dependencies:
"graphql": "*"
"@graphiql/toolkit@*":
dependencies:
"graphql": "*" I think the root issue is also this yarnpkg/yarn#7014 |
Is there an existing issue for this?
Current Behavior
I'm using yarn v4 with PnP
graphiql v4.0.0 is ok
graphiql v4.0.1+ gives following errors
Expected Behavior
No errors.
Steps To Reproduce
I have only such 2 imports -> gives 36 dependency errors
Environment
react
Version: 19graphql
Version: 16Anything else?
No response
The text was updated successfully, but these errors were encountered: