Vscode не определяет местоположение ошибки при использовании GraphQL - PullRequest
0 голосов
/ 28 мая 2020

Я только начал учиться использовать graphQL и использую Vscode в качестве своей IDE. Но кажется, что vscode не может сказать точное местоположение (точнее, имя файла), где я допустил синтаксическую ошибку.

[nodemon] app crashed - waiting for file changes before starting...
[nodemon] restarting due to changes...
[nodemon] starting `node src/app.js`

C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:1404
    throw (0, _syntaxError.syntaxError)(this._lexer.source, token.start, "Expected ".concat(kind, ", found ").concat(getTokenDesc(token)));
    ^
GraphQLError: Syntax Error: Expected :, found )
    at syntaxError (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\error\syntaxError.js:15:10)
    at Parser.expectToken (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:1404:40)
    at Parser.parseInputValueDef (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:890:10)
    at Parser.optionalMany (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:1497:28)
    at Parser.parseArgumentDefs (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:878:17)
    at Parser.parseFieldDefinition (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:858:21)
    at Parser.optionalMany (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:1497:28)
    at Parser.parseFieldsDefinition (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:846:17)
    at Parser.parseObjectTypeExtension (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:1163:23)
    at Parser.parseTypeSystemExtension (C:\Users\hp\Desktop\MyProjects\GraphQL_ChatApp\node_modules\graphql\language\parser.js:1081:23) {
  locations: [ { line: 8, column: 20 } ]

У меня есть расширение apollo, но это не похоже, тоже что-то исправляют.

...