[英]Failed to precompile build script .dart_tool/build/entrypoint/build.dart
I am facing a problem while updating the ferry package from 0.10.4 to 0.13.0.我在将渡轮 package 从 0.10.4 更新到 0.13.0 时遇到问题。 When executing
dart run build_runner build --delete-conflicting-outputs
, it always throws the next error:当执行
dart run build_runner build --delete-conflicting-outputs
时,它总是抛出下一个错误:
`[WARNING] Invalidated precompiled build script due to core package update [WARNING] Error: Cannot run with sound null safety, because the following dependencies don't support null safety: `[警告] 由于核心 package 更新,预编译构建脚本无效 [警告] 错误:无法以声音 null 安全运行,因为以下依赖项不支持 null 安全:
For solutions, see https://dart.dev/go/unsound-null-safety [INFO] Precompiling build script... completed, took 3.3s [SEVERE] Failed to precompile build script.dart_tool/build/entrypoint/build.dart.有关解决方案,请参阅https://dart.dev/go/unsound-null-safety [信息] 预编译构建脚本...已完成,耗时 3.3 秒 [严重] 无法预编译构建脚本.dart_tool/build/entrypoint/build。 dart。 This is likely caused by a misconfigured builder definition.`
这可能是由错误配置的构建器定义引起的。`
These are my ferry packages:这些是我的渡轮包裹:
#ferry configurations:
ferry: ^0.13.0
gql_http_link: ^0.4.5
dev_dependencies:
flutter_test:
sdk: flutter
ferry_generator: ^0.7.0
flutter_lints: ^2.0.1
build_runner: ^2.3.3
I have also tried adding gql 0.14.0 to dependency_overrides but it throws the same error.我也尝试将 gql 0.14.0 添加到 dependency_overrides 但它会引发相同的错误。 Any clue about a possible solution?
关于可能的解决方案的任何线索?
Try this combination, use the ones you need,试试这个组合,使用你需要的,
dependencies:
ferry: ^0.10.4
ferry_hive_store: ^0.4.4
ferry_cache: ^0.5.5
ferry_exec: ^0.1.4
normalize: ^0.5.5
gql: 0.13.1-alpha+1645425888336
gql_link: ^0.4.2-alpha+1635885531659
gql_error_link: ^0.2.0
gql_exec: ^0.3.2-alpha+1635885531651
gql_code_builder: ^0.2.0
gql_dio_link: ^0.2.2-alpha+1635885531750
gql_dedupe_link: ^2.0.1
dev_dependencies:
ferry_generator: ^0.4.4
freezed: 2.0.3 # can't update to 2.0.5 until we can use analyzer 4.0
dependency_overrides:
analyzer: ^3.4.1
Source - https://github.com/gql-dart/gql/issues/308#issuecomment-1192756840来源 - https://github.com/gql-dart/gql/issues/308#issuecomment-1192756840
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.