Home > front end >  *[SEVERE]* Failed to precompile build script .dart_tool/build/entrypoint/build.dart. This is likely
*[SEVERE]* Failed to precompile build script .dart_tool/build/entrypoint/build.dart. This is likely

Time:04-23

[INFO] Precompiling build script...... [WARNING] ../../flutter/.pub-cache/hosted/pub.dartlang.org/gql_code_builder-0.2.0/lib/src/ast.dart:618:12: Error: A non-null value must be returned since the return type 'Expression' doesn't allow null.

  • 'Expression' is from 'package:code_builder/src/specs/expression.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/code_builder-4.1.0/lib/src/specs/expression.dart'). Expression _directiveLocation(DirectiveLocation location) { ^ [INFO] Precompiling build script... completed, took 838ms

[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart. This is likely caused by a misconfigured builder definition.

CodePudding user response:

It looks like here there is a fix gql-dart/gql#308

dependency_overrides:
  gql: 0.13.0
  • Related