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

Syntax Error: Unexpected <EOF> #112

Open
bublig737 opened this issue Jul 2, 2019 · 5 comments
Open

Syntax Error: Unexpected <EOF> #112

bublig737 opened this issue Jul 2, 2019 · 5 comments

Comments

@bublig737
Copy link

bublig737 commented Jul 2, 2019

Hello
After invoke EasyGraphQLTester constructor i have the Syntax Error: Unexpected

I did console the Lexure which parses on that time and this lexure is #imports

@estrada9166
Copy link
Member

Can you share a snippet of your code, please! so I can reproduce it.

@bublig737
Copy link
Author

bublig737 commented Jul 2, 2019

Wow, thank you for quick reply.
My JavaScript code is simply:

import EasyGraphQLTester from 'easygraphql-tester'

import models from '../models/models.graphql'
import modules from '../modules/index.graphql'
import typeDefs from '../typeDefs/scalars/index.graphql'
import directives from '../directives/directives.graphql'

let tester = new EasyGraphQLTester([models, modules, typeDefs, directives])

*.graphql schemas has an imports by whose the graphQl parser thows this Error on 148 line on the follow screenshot

image

@bublig737
Copy link
Author

bublig737 commented Jul 2, 2019

as we can see, LEXER is imports
image

@bublig737
Copy link
Author

bublig737 commented Jul 2, 2019

Oh im sorry, maybe I did show my problem not enough clearly
graphQL parser is advance library in node_modules on path node_modules/graphql/language/parser.js

Can you please help me with this problem? How i can pass schemas with #imports lexures through the EasyGraphQLTester constructor ?

@bublig737
Copy link
Author

bublig737 commented Jul 3, 2019

Can you share a snippet of your code, please! so I can reproduce it.

Hello! You can reproduce it Error by invoke EasyGraphQLTester constructor with schemas that includes imports
For example:

# import *, from '../models/models.graphql'
# import *, from '../modules/index.graphql'
# import *, from './scalars/index.graphql'
# import *, from '../directives/directives.graphql'

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