下面是我的 pubspec.yaml 文件
name: MyApp
description: A sample command-line application
dependencies:
csv_sheet: any
redstone: any
shelf_static: any
browser: any
angular: ">=0.14.0 <0.15.0"
polymer: ">=0.13.0"
core_elements: ">=0.2.0+1"
paper_elements: ">=0.1.1+2"
我收到以下错误
Pub get failed, [1] Resolving dependencies...
Incompatible version constraints on code_transformers:
- angular 0.14.0 depends on version >=0.1.4+2 <0.2.0
- polymer 0.13.0 depends on version >=0.2.0 <0.3.0
因此 Angular 和 Polymer 使用不同版本的 code_transformers。
是否有角度和聚合物版本约束的组合可以使我的 pubspec.yaml 工作?
你可以加
dependency_overrides:
code_transformers: '>=0.2.0 <0.3.0'
to your pubspec.yaml
file.
您需要自行承担风险,因为 Angular 尚未对此进行测试code_transformers
版本。
作为替代方案,您可以使用旧版本的 Polymer 或等待下一个 Angular 版本。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)