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)

Most upvoted comments

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.20 but basically ALL versions after/except the 0.1.12 as @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-explorer to the latest version (which is 0.1.12) then it should work

My other issue was resolved by rewriting components to use GraphiQLProvider + GraphiQLInterface with useEditorContext. My mistake was trying to keep my own state management instead of relying on your context and query/variable editor.