-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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-language-service]: TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be one of type string or Buffer. Received type object #1319
Comments
I've almost done to fix this issue at my local branch. Soon I'll PR for this. |
thanks @yoshiakis! we have an outstanding bug for this: #1306 |
we're already underway with a fix. which needs to be in |
i’ll get a chance to take a closer look next week probably |
acao
added a commit
that referenced
this issue
Feb 28, 2020
acao
added a commit
that referenced
this issue
Feb 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
graph-language-service
doesn't return an error message that shows what you need to do.how to reproduce
Run one of the following commands in the root of package
graphql-language-service
, then you got the same error message as the title.bin/graphql.js autocomplete --text foo --schemaPath ...
bin/graphql.js outline --text foo
bin/graphql.js validate --text foo --schemaPath ...
(Before running these scripts, you need to run
yarn build
in advance.)cause
error
given atgraphiql/packages/graphql-language-service/src/client.ts
Line 105 in 917c393
or
graphiql/packages/graphql-language-service/src/client.ts
Line 134 in 917c393
or
graphiql/packages/graphql-language-service/src/client.ts
Line 148 in 917c393
is actually type object, though
process.stderr.write
method doesn't allow for type object. Therefore, the method throws an error.The text was updated successfully, but these errors were encountered: