angular-dart - 使用 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
你知道如何运行样本吗?
解决方案
推荐阅读
- java - Firebase 插入覆盖而不是附加
- java - 空指针异常 - 驱动程序空
- python - GridSearchCV 错误:预期类数组(数组或非字符串序列),得到
- javascript - Express.js 'app' 一行而不是两行
- swift - Swift:日期无法解析“yyyy-MM-dd'T'HH:mm:ss”字符串
- sql - SQL - zabbix 项目的异构查询错误
- vue.js - 是否可以在 VueJS 中传递反应属性?
- android - 如何完全销毁对话框片段以解决内存泄漏问题?
- php - CodeIgniter,在服务器上找不到请求的 URL
- c# - 如何通过 Webhooks C# 发送带有 POST 请求的 Discord 嵌入