Dart 为什么WebComponents声称我有一个;“非法字符”;在我的道路上?

Dart 为什么WebComponents声称我有一个;“非法字符”;在我的道路上?,dart,dart-polymer,angular-dart,dart-pub,Dart,Dart Polymer,Angular Dart,Dart Pub,运行pub-service后,我收到一条异常错误消息: Loading source assets... Loading polymer, angular2 and dart_to_js_script_rewriter transformers... Serving group_maker web on http://localhost:8080 Build error: Transform WebComponents on group_maker|web/index.html threw er

运行
pub-service
后,我收到一条异常错误消息:

Loading source assets...
Loading polymer, angular2 and dart_to_js_script_rewriter transformers...
Serving group_maker web on http://localhost:8080
Build error:
Transform WebComponents on group_maker|web/index.html threw error:

    Invalid argument(s): Illegal character in path
dart:core/uri.dart 861                               Uri._checkWindowsPathReservedCharacters
dart:core/uri.dart 962                               Uri._makeWindowsFileUrl
dart:core/uri.dart 744                               Uri.Uri.file
package:analyzer/src/string_source.dart 30           StringSource.StringSource
package:dart_style/src/dart_formatter.dart 81        DartFormatter.formatSource
package:dart_style/src/dart_formatter.dart 62        DartFormatter.format
package:initialize/transformer.dart 340              _BootstrapFileBuilder._buildNewEntryPoint
package:initialize/transformer.dart 225              _BootstrapFileBuilder.run
package:initialize/transformer.dart 37               generateBootstrapFile
package:web_components/build/web_components.dart 32  generateWebComponentsBootstrap
package:web_components/build/web_components.dart 82  WebComponentsTransformer.apply.<fn>.<fn>
dart:async/zone.dart 1204                            _RootZone.runUnary
dart:async/future_impl.dart 131                      _FutureListener.handleValue
dart:async/future_impl.dart 637                      _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 667                      _Future._propagateToListeners
dart:async/future_impl.dart 477                      _Future._completeWithValue
dart:async/future_impl.dart 528                      _Future._asyncComplete.<fn>
dart:async/schedule_microtask.dart 41                _microtaskLoop
dart:async/schedule_microtask.dart 50                _startMicrotaskLoop
dart:isolate-patch/isolate_patch.dart 96             _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 149            _RawReceivePortImpl._handleMessage

dart:core                                            Uri.Uri.file
package:analyzer/src/string_source.dart 30           StringSource.StringSource
package:dart_style/src/dart_formatter.dart 81        DartFormatter.formatSource
package:dart_style/src/dart_formatter.dart 62        DartFormatter.format
package:initialize/transformer.dart 340              _BootstrapFileBuilder._buildNewEntryPoint
package:initialize/transformer.dart 225              _BootstrapFileBuilder.run
package:initialize/transformer.dart 37               generateBootstrapFile
package:web_components/build/web_components.dart 32  generateWebComponentsBootstrap
package:web_components/build/web_components.dart 82  WebComponentsTransformer.apply.<fn>.<fn>
Build completed with 1 errors.
main.dart

import 'package:angular2/platform/browser.dart';
import 'package:polymer/polymer.dart';

main() async {
    await initPolymer();
}

有人能理解这一点吗?

看起来很像。你能检查一下你使用的分析仪版本吗?@GünterZöchbauer我看到了那篇帖子,并且已经将我的
analyzer
软件包版本控制降低到
analyzer软件包移动速度非常快,因此依赖于
analyzer
的软件包的版本限制非常狭窄,因为每次analyzer更新都可能包含破坏性的更改。不经常更新或不太注意支持所有内容的最新版本的包会下拉具有共享依赖性的所有直接依赖项和可传递依赖项的版本。这就是为什么通常需要相当长的时间才能获得所有内容的最新版本。如果你不发布到pub,你可以尝试使用
dependency\u overrides
@GünterZöchbauer强制更新analyzer版本。好的,谢谢你的建议。
import 'package:angular2/platform/browser.dart';
import 'package:polymer/polymer.dart';

main() async {
    await initPolymer();
}