在DART应用程序中找不到发布包引用
我已经按照上面的指示做了。页面中的这段代码给我带来了一些问题:在DART应用程序中找不到发布包引用,dart,dart-pub,Dart,Dart Pub,我已经按照上面的指示做了。页面中的这段代码给我带来了一些问题: import 'package:web_components/component_build.dart'; import 'dart:io'; void main() { build(new Options().arguments, ['web/app.html']); } 当我尝试运行时,这是我收到的错误: dart--启用选中模式--包根=C:\Users\John Jelinek\dart\ 飞镖 无法打开文件:C:\
import 'package:web_components/component_build.dart';
import 'dart:io';
void main() {
build(new Options().arguments, ['web/app.html']);
}
当我尝试运行时,这是我收到的错误:
dart--启用选中模式--包根=C:\Users\John Jelinek\dart\
飞镖
无法打开文件:C:\Users\John
Jelinek\dart\web\u组件/component\u build.dart'file:///C:/Users/John
Jelinek/Documents/dart/webComponents/build.dart':错误:第1行位置1:
库处理程序导入失败
'包:web_组件/component_build.dart'^
我不知道当项目位于C:\Users\John Jelinek\dart
中时,它为什么试图在C:\Users\John Jelinek\Documents\dart
中查找引用。顺便说一句,我使用的是Windows7家庭高级64位。确保我的发布包引用适当位置的最佳方法是什么
注意:我找到了,但这些答案都不适用于我。查看这些说明,看看它们是否解决了您的问题:
可能是路径上的空格。尝试一条没有空格的路径,看看问题是否仍然存在。