graphql / graphql/graphiql

graphql-codegen Syntax error when installing graphiql package

Open
#3,457 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

Describe the bug
Running yarn codegen after installing graphiql package throws syntax error:

Expected Name, found "}".

if graphiql package is removed, everything works fine.
![Screenshot 2023-11-09 at 3 15 10 PM](https://github.com/graphql/graphiql/assets/123005072/fadd78c4-ba8e-49aa-996f-3546df27cf8d)

I can't figure out what is causing this. Probably some nested dependency issues?

Your Example Website or App
codesandbox : https://shorturl.at/bBPWY

Steps to Reproduce the Bug or Issue
open terminal
Run yarn codegen

Remove graphiql and it works fine.

Expected behavior
I expect it to throw no issues

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.