Skip to content
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

Codesandbox - TypeError: Cannot read properties of undefined (reading 'FIELD') #3685

Closed
MrDoomBringer opened this issue Jul 28, 2022 · 1 comment

Comments

@MrDoomBringer
Copy link

Looks like at Version 16, the graphql module stopped functioning in CodeSandbox.
Any import statement will throw the TypeError Cannot read properties of undefined (reading 'FIELD')
Has anyone had any experience with this?

Example of this issue:
https://codesandbox.io/s/graphql-field-error-eih7xb?file=/src/index.js

IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this issue Aug 2, 2022
Fixes graphql#3685
Since we decide to get rid of TS enums in v17 anyway just add this
workaround to v16

Note: Opened draft PR to test that it even works
@IvanGoncharov
Copy link
Member

Fixed in https://github.com/graphql/graphql-js/releases/tag/v16.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants