angel-dart / angel

[ARCHIVED] A polished, production-ready backend framework in Dart for the VM, AOT, and Flutter.
https://angel-dart.dev/
MIT License
1.06k stars 67 forks source link

published graphql_parser seems outdated #251

Closed micimize closed 3 years ago

micimize commented 4 years ago

When using the the published version of the parser I get the following error:

Unable to spawn isolate: ../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:58:55: Error: The getter 'innerType' isn't defined for the class 'ListTypeContext'.
 - 'ListTypeContext' is from 'package:graphql_parser/src/language/ast/list_type.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/list_type.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'innerType'.
      return GraphQLListType(convertType(ctx.listType.innerType));
                                                      ^^^^^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:165:34: Error: The method 'computeValue' isn't defined for the class 'ValueContext<dynamic>'.
 - 'ValueContext' is from 'package:graphql_parser/src/language/ast/value.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/value.dart').
Try correcting the name to the name of an existing method, or defining a method named 'computeValue'.
              defaultValue.value.computeValue(variableValues);
                                 ^^^^^^^^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:421:43: Error: The getter 'value' isn't defined for the class 'ArgumentContext'.
 - 'ArgumentContext' is from 'package:graphql_parser/src/language/ast/argument.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/argument.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
              argumentName, argumentValue.value.computeValue(variableValues));
                                          ^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:429:37: Error: The getter 'value' isn't defined for the class 'ArgumentContext'.
 - 'ArgumentContext' is from 'package:graphql_parser/src/language/ast/argument.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/argument.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
                      argumentValue.value.span.start)
                                    ^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:440:39: Error: The getter 'value' isn't defined for the class 'ArgumentContext'.
 - 'ArgumentContext' is from 'package:graphql_parser/src/language/ast/argument.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/argument.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
                        argumentValue.value.span.start)
                                      ^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:457:35: Error: The getter 'value' isn't defined for the class 'ArgumentContext'.
 - 'ArgumentContext' is from 'package:graphql_parser/src/language/ast/argument.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/argument.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
                    argumentValue.value.span.start)
                                  ^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:461:17: Error: The getter 'message' isn't defined for the class 'TypeError'.
 - 'TypeError' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'message'.
              e.message.toString(),
                ^^^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:464:35: Error: The getter 'value' isn't defined for the class 'ArgumentContext'.
 - 'ArgumentContext' is from 'package:graphql_parser/src/language/ast/argument.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/argument.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
                    argumentValue.value.span.start)
                                  ^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:695:18: Error: The getter 'value' isn't defined for the class 'DirectiveContext'.
 - 'DirectiveContext' is from 'package:graphql_parser/src/language/ast/directive.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/directive.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
      var vv = d.value;
                 ^^^^^
../../../../.pub-cache/git/angel-0c30f2d0359e2a7e8c59946e7c0f53a4b3cb4d2e/packages/graphql/graphql_server/lib/graphql_server.dart:706:33: Error: The getter 'value' isn't defined for the class 'ArgumentContext'.
 - 'ArgumentContext' is from 'package:graphql_parser/src/language/ast/argument.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/graphql_parser-1.1.4/lib/src/language/ast/argument.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
    var vv = directive.argument.value;
                                ^^^^^