aaronwlee/oak-graphql

Uncaught ReferenceError: exports is not defined

Abdubek opened this issue · 3 comments

I get this error when starting the application (and when deno run --reload https://deno.land/x/oak_graphql/mod.ts)

error: Uncaught ReferenceError: exports is not defined
Object.defineProperty(exports, "__esModule", {
                  ^
at https://cdn.pika.dev/-/graphql@v14.7.0-LNtF6ErZCSf0EZG1C4Ps/dist=es2019,mode=exports/language/parser.js:3:23

I copied the application code from the documentation and did not make any changes

deno 1.2.0
v8 8.5.216
typescript 3.9.2

Can confirm

Same Problem

Same problem...
graphql-tag is using graphql@v14.7.0, and this particular version has something wrong with loading by pika cdn.

So I have embedded gql-tag project locally then solve the problem. so painful XD

plz reload the module

deno run --reload https://deno.land/x/oak_graphql/mod.ts

or using

import { applyGraphQL, gql, GQLError } from "https://x.nest.land/oak-graphql@0.5.8/mod.ts";