简体   繁体   English

预编译构建脚本失败.dart_tool/build/entrypoint/build.dart

[英]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 安全:

  • package:quiver package:箭袋

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.

相关问题 *[严重]* 无法预编译构建脚本.dart_tool/build/entrypoint/build.dart。 这可能是由错误配置的构建器定义引起的 - *[SEVERE]* Failed to precompile build script .dart_tool/build/entrypoint/build.dart. This is likely caused by a misconfigured builder definition inject-dart 无法快照构建 script.dart_tool/build/entrypoint/build.dart。 这可能是由错误配置的构建器定义引起的 - inject-dart Failed to snapshot build script .dart_tool/build/entrypoint/build.dart. This is likely caused by a misconfigured builder definition 构建失败,在 flutter 中出现异常 - 'dart: html' - build failed with an exception in flutter - 'dart: html' 无效的 depfile: C:\xxx\xxx\Flutter\project_name\.dart_tool\flutter_build\df4b308df1ee4bce22c56c71751554d1\kernel_snapshot.d 无效 - Invalid depfile: C:\xxx\xxx\Flutter\project_name\.dart_tool\flutter_build\df4b308df1ee4bce22c56c71751554d1\kernel_snapshot.d Invalid Flutter web 构建 - 空白页并停止在 web_entrypoint.dart 文件 - Flutter web build - blank page and stops on web_entrypoint.dart file dart 模块化与 build_runner - dart modularization with build_runner Flutter 应用程序中 .dart_tool 文件夹的功能是什么? - What is the functionality of .dart_tool folder in a Flutter application? 构建期间Dart / Flutter中的构建错误 - Build Error in Dart / Flutter during build 无法预编译 build_runner:build_runner: - Failed to precompile build_runner:build_runner: 使构建 function 异步 [Flutter] [Dart] - Make the build function async [Flutter] [Dart]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM