首页 > 解决方案 > 使用 Dart SDK 2.1.0-dev 运行 angular_components

问题描述

我已经安装了最新的 Dart SDK 2.1.0-dev.7.1 来试用 Material Design 示例: https ://github.com/dart-lang/angular_components/tree/master/examples

以下失败的示例是:

angular_components/examples/material_card_example

我已经 git 克隆了 repo,并且在webdev serve我得到的一个示例中运行时:

webdev could not run for this project.
You must have a dependency on `build_runner` in `pubspec.yaml`.
# pubspec.yaml
dev_dependencies:
  build_runner: >=0.8.10 <2.0.0
You must have a dependency on `build_web_compilers` in `pubspec.yaml`.
# pubspec.yaml
dev_dependencies:
  build_web_compilers: >=0.3.6 <0.5.0

你知道如何运行样本吗?

标签: angular-dart

解决方案


推荐阅读