Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在DART应用程序中找不到发布包引用_Dart_Dart Pub - Fatal编程技术网

在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位。确保我的发布包引用适当位置的最佳方法是什么


注意:我找到了,但这些答案都不适用于我。

查看这些说明,看看它们是否解决了您的问题:


可能是路径上的空格。尝试一条没有空格的路径,看看问题是否仍然存在。