graphql / graphql/graphiql

[graphiql] Prettify Query fails

Open
#4,092 1 comment 1 reaction 0 assignees View on GitHub
bug graphiql
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current Behavior

"Prettify Query" fails with the following error:

Image

### Expected Behavior

prettify query formats the query (and potentially the variables)

### Steps To Reproduce

1. use latest graphiql 5 version
2. render component
3. write a query
4. click "Prettify Query" -> see error in console

### Environment

* GraphiQL Version: 5.2.0
* OS: ubuntu
* Browser: edge stable
* Bundler: vite
* `react` Version: 19

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.