AngularDart 4 与 Dart 2 和 build_runner 0.8 兼容吗?

Is AngularDart 4 compatible with Dart 2 & build_runner 0.8?

当前

Dart 2 upgrade @ https://webdev-dartlang-org-dev.firebaseapp.com/dart-2 的升级要求之一是使用 build_runner 0.8,从错误代码来看,它与 Angular4 不兼容。

我的pubspec.yaml长得像

name: JRapha
description: A web app that uses AngularDart Components
version: 0.0.1
environment:
  sdk: '>=2.0.0-dev.49.0 <2.0.0'
dependencies:
  angular: ^4.0.0
dev_dependencies:
  angular_test: ^1.0.0
  test: ^0.12.30
  build_runner: ^0.8.2
  build_test: ^0.10.1
  build_web_compilers: ^0.3.6
web:
  compiler:
    debug: dartdevc

运行pub get

时的错误

Because angular_compiler >=0.2.1 <0.3.0+1 depends on build ^0.10.0 and no versions of angular_compiler match >0.3.0+1 <0.4.0, angular_compiler >=0.2.1 <0.3.0+1 or >0.3.0+1 <0.4.0 requires build ^0.10.0. And because angular >=4.0.0-beta <5.0.0-alpha depends on angular_compiler ^0.3.0, angular >=4.0.0-beta <5.0.0-alpha requires build ^0.10.0 or angular_compiler 0.3.0+1. And because angular_compiler 0.3.0+1 depends on build >=0.10.0 <0.12.0 and build_web_compilers >=0.2.1 depends on build ^0.12.0, angular >=4.0.0-beta <5.0.0-alpha is incompatible with build_web_compilers >=0.2.1. So, because JRapha depends on both angular ^4.0.0 and build_web_compilers ^0.3.6, version solving failed.

是否有针对 运行 AngularDart4 with Dart v2 的解决方案?

不,不兼容。

只有 AngularDart v5 兼容 Dart2 和 build_runner