diff --git a/alias/error/GraphQLError.mjs b/alias/error/GraphQLError.mjs index 441efe7..3ad0785 100644 --- a/alias/error/GraphQLError.mjs +++ b/alias/error/GraphQLError.mjs @@ -1,8 +1,6 @@ import { getLocation } from 'graphql/language/location'; -import { - printLocation, - printSourceLocation, -} from 'graphql/language/printLocation'; + +import { printLocation, printSourceLocation } from '../language/printLocation'; export class GraphQLError extends Error { constructor( diff --git a/alias/language/parser.mjs b/alias/language/parser.mjs index bd5aa77..bb07ff3 100644 --- a/alias/language/parser.mjs +++ b/alias/language/parser.mjs @@ -4,7 +4,8 @@ * in graphql.js it will only parse the query language, but not the schema * language. */ -import { Kind, GraphQLError } from 'graphql'; +import { Kind } from 'graphql'; +import { GraphQLError } from '../error/GraphQLError'; import { match, parse as makeParser } from 'reghex'; // 2.1.7: Includes commas, and line comments