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

Type exported as JS breaks imports (v15.x.x branch) #4325

Closed
hackwater opened this issue Jan 13, 2025 · 2 comments · Fixed by #4326
Closed

Type exported as JS breaks imports (v15.x.x branch) #4325

hackwater opened this issue Jan 13, 2025 · 2 comments · Fixed by #4326
Labels

Comments

@hackwater
Copy link

hackwater commented Jan 13, 2025

@enisdenjo This export of GraphQLFormattedError should be prefaced with the type keyword to avoid it exporting as regular JS in your build process: https://github.com/graphql/graphql-js/blob/v15.10.0/src/error/formatError.js
export { formatError, GraphQLFormattedError } from './GraphQLError'; in src/error/formatError.js of the v15 branch for the link-averse.

@hackwater hackwater changed the title Type exported as JS breaks imports Type exported as JS breaks imports (v15.x.x branch) Jan 13, 2025
@enisdenjo
Copy link
Member

Oh right, my bad! I'll fix it soon. Thanks for reporting!

@enisdenjo
Copy link
Member

Fixed in v15.10.1 with #4326.

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

Successfully merging a pull request may close this issue.

2 participants