运行Web组件build.dart:FormatException:找不到名为“machine”的选项

时间:2012-12-06 00:40:33

标签: dart

每当我更新某个文件并且build.dart运行时,我都会收到此错误:

build.dart --changed=web\index.html
file:/C:/Users/Fernando/dart/ACIMReader/build.dart
build.dart returned error code 255

Unhandled exception:
FormatException: Could not find an option named "machine".
#0      ArgParser._validate (package:args/args.dart:349:21)
#1      ArgParser._parseLongOption (package:args/args.dart:488:16)
#2      ArgParser.parse (package:args/args.dart:313:27)
#3      _processArgs (package:web_components/component_build.dart:99:26)
#4      build (package:web_components/component_build.dart:34:26)
#5      main (file:///C:/Users/Fernando/dart/ACIMReader/build.dart:5:8)

1 个答案:

答案 0 :(得分:1)

编辑器最近开始添加--machine标志,以便构建脚本知道输出机器可读消息。 web_components上周增加了对旗帜的支持,你有没有运行pub update?