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

Weird error when global fragment file is empty #37

Open
Janiczek opened this issue Sep 4, 2023 · 0 comments
Open

Weird error when global fragment file is empty #37

Janiczek opened this issue Sep 4, 2023 · 0 comments

Comments

@Janiczek
Copy link
Contributor

Janiczek commented Sep 4, 2023

(Found on elm-gql 0.9.3)

When creating an empty fragment file, the error is:

--Too much stuff in global fragment------------------src/fragments/Product.gql--

Global fragment files can only contain one fragment definition, but I found some other stuff in there.
Also, make sure to name your fragment the same as the filename!

Which is weird ("found some other stuff in there" - there's nothing there!). Some error specific to this situation might improve the situation?

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

No branches or pull requests

1 participant