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

'toJSON' is declared here. #2648

Closed
dhavaljardosh opened this issue Jun 13, 2020 · 3 comments
Closed

'toJSON' is declared here. #2648

dhavaljardosh opened this issue Jun 13, 2020 · 3 comments

Comments

@dhavaljardosh
Copy link

await graphql(schema, query, new Query());

This works good with 15.0.0 but not with 15.1.0, and I get the following error.

'toJSON' is declared here.
      toJSON(): { start: number; end: number };
      ~~~~~~
        at https://cdn.pika.dev/-/graphql@v15.1.0-txyliWKfLgU2VsDvVwhF/dist=es2019,mode=types/language/ast.d.ts:36:3

It's the addition of toJSON as I looked into the source both in 15.0.0 and 15.1.0, but could someone please tell how to properly do this.

@IvanGoncharov
Copy link
Member

@dhavaljardosh Can you please create a small repository that reproduces your problem?
Without it, there is nothing we can do to help you.

@dhavaljardosh
Copy link
Author

@IvanGoncharov , Sure

https://github.com/dhavaljardosh/deno-gql-video

In this repo, please change a line in the index.ts from
import { graphql } from "https://cdn.pika.dev/graphql@^15.0.0";

to

import { graphql } from "https://cdn.pika.dev/graphql@^15.1.0";

15.0.0 will work fine, but not, 15.1.0.

@IvanGoncharov
Copy link
Member

We not yet support deno, but we working on it.
Progress is tracked in #2566

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

No branches or pull requests

2 participants