Dart导入包:polymer/polymer.dart错误
Dart import package:polymer/polymer.dart error
我正在尝试使用 Polymer 创建我自己的元素,但我无法导入聚合物包。
为什么会抛出错误:"Target of URI doesn't exist"?
在工具输出 window 中,我发现了 404 错误。
还有我的pubspec.yaml
:
name: polymer1
description: A sample web application
dependencies:
browser: any
polymer: ">=0.15.1 < 0.17.0"
我很确定您的 pub-cache
已损坏。尝试从命令行 运行 pub cache repair
。
我正在尝试使用 Polymer 创建我自己的元素,但我无法导入聚合物包。
为什么会抛出错误:"Target of URI doesn't exist"?
在工具输出 window 中,我发现了 404 错误。
还有我的pubspec.yaml
:
name: polymer1
description: A sample web application
dependencies:
browser: any
polymer: ">=0.15.1 < 0.17.0"
我很确定您的 pub-cache
已损坏。尝试从命令行 运行 pub cache repair
。