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

graphql_1.parse is not a function #655

Closed
zhe1ka opened this issue Feb 24, 2018 · 6 comments
Closed

graphql_1.parse is not a function #655

zhe1ka opened this issue Feb 24, 2018 · 6 comments

Comments

@zhe1ka
Copy link

zhe1ka commented Feb 24, 2018

Hi there!
I'm trying to deploy my app that uses apollo/graphql. Locally everything works correctly. But on the server machine my app doesn't start and in console there is an error.

graphql_1.parse is not a function

I figured out that the problem is in makeExecutableSchema
here
const schema = makeExecutableSchema({ typeDefs: [ gqlRootQueries, gqlServicesQuery ], resolvers: merge( gqlServicesResolvers ) });

full error:
image

"graphql": "^0.13.1",
"graphql-tools": "^2.21.0",

my server features:
1 GB Memory / 25 GB Disk - Ubuntu 16.04.3 x64

I'm really stuck and I have no a slightest clue hot to resolve it.

@vietmstage
Copy link

maybe you need to downgrade the version of graphql to "graphql": "^0.12.3"

@manico
Copy link

manico commented Mar 12, 2018

I also have this when using custom scalar and schema stitching.
Graphql is 0.12.3

@zhe1ka
Copy link
Author

zhe1ka commented Mar 12, 2018

@manico Yes, I have a custom scalar (for Date). But my problem was resolved by itself. I just restart (remove and upload my app again).

@manico
Copy link

manico commented Mar 20, 2018

This happens from time to time without any good error message. :(

@stubailo
Copy link
Contributor

This looks like an issue with bundling, and there isn't a reproduction.

@helfer
Copy link
Contributor

helfer commented Aug 19, 2018

I think this is the underlying issue: graphql/graphql-js#1248

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

5 participants