graphiql: GraphQL Explorer Plugin throwing error
I have added GraphQL Explorer Plugin, following the same steps in the readme here and the examples: https://github.com/graphql/graphiql/tree/main/packages/graphiql-plugin-explorer
The plugin button shows up but when i click it, i get this error:
'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
Is there anything I’m missing, has anyone else come across this?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (1 by maintainers)
Seems to work for me now, the issue was I was using
"graphiql": "2.0.3"instead of"graphiql": "2.0.7"Hey, so it happens again on latest
0.1.20but basically ALL versions after/except the0.1.12as @thomasheyenbrock has mentioned above, are having the same issues. For the context, I am running this inside a Storybook but the error is the same as everyone else. Thanks.@eMerzh if you also upgrade
@graphiql/plugin-explorerto the latest version (which is0.1.12) then it should workMy other issue was resolved by rewriting components to use
GraphiQLProvider+GraphiQLInterfacewithuseEditorContext. My mistake was trying to keep my own state management instead of relying on your context and query/variable editor.