【发布时间】:2018-04-23 19:32:55
【问题描述】:
正在播放
- Dart 虚拟机版本:2.0.0-dev.49.0
- 角^4.0.0
- Linux
- Dartium
Dart 2 升级@https://webdev-dartlang-org-dev.firebaseapp.com/dart-2 的升级要求之一是使用build_runner 0.8,错误代码中的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.
是否有解决方案可以使用 Dart v2 运行 AngularDart4?
【问题讨论】:
标签: dart angular-dart