Dart 可反射0.3.4-新版本引发异常

Dart 可反射0.3.4-新版本引发异常,dart,dart-polymer,Dart,Dart Polymer,我刚刚更新了我的dart应用程序,然后进行了发布缓存修复 应用程序未运行,调试引发以下异常 Uncaught Unhandled exception: Unsupported operation: Cannot provide `reflectedType` of instance of generic type 'List'. #0 InstantiatedGenericClassMirrorImpl.reflectedType (package:reflectable/src/re

我刚刚更新了我的dart应用程序,然后进行了发布缓存修复

应用程序未运行,调试引发以下异常

Uncaught Unhandled exception:
Unsupported operation: Cannot provide `reflectedType` of instance of generic type 'List'.
#0      InstantiatedGenericClassMirrorImpl.reflectedType (package:reflectable/src/reflectable_transformer_based.dart:713:5)
#1      _getPropertyInfoForType (package:polymer/src/common/polymer_descriptor.dart:210:46)
#2      _buildPropertiesObject.<anonymous closure> (package:polymer/src/common/polymer_descriptor.dart:58:24)
#3      _HashVMBase&MapMixin&&_LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:340)
#4      _buildPropertiesObject (package:polymer/src/common/polymer_descriptor.dart:56:16)
#5      createPolymerDescriptor (package:polymer/src/common/polymer_descriptor.dart:26:19)
#6      PolymerRegister.initialize (package:polymer/src/common/polymer_register.dart:19:36)
#7      loadInitializers.<anonymous closure>.<anonymous closure> (package:initialize/src/static_loader.dart:46:32)
#8      _runInitQueue (package:initialize/initialize.dart:35:24)
#9      _runInitQueue.<anonymous closure> (package:initialize/initialize.dart:38:26)
#10     _RootZone.runUnary (dart:async/zone.dart:1149)
#11     _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:502)
#12     _Future._propagateToListeners (dart:async/future_impl.dart:585)
#13     _Future._completeWithValue (dart:async/future_impl.dart:376)
#14     _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:430)
#15     _microtaskLoop (dart:async/schedule_microtask.dart:43)
#16     _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)
#17     _ScheduleImmediateHelper._handleMutation (dart:html:49254)
#18     MutationObserver._create.<anonymous closure> (dart:html:27526)
  (anonymous function)
未捕获的未处理异常:
不支持的操作:无法提供泛型类型“List”实例的“reflectedType”。
#0实例化GenericClassMirrorImpl.reflectedType(包:reflectable/src/reflectable_transformer_-based.dart:713:5)
#1 getPropertyInfoForType(包:polymer/src/common/polymer\u描述符。dart:210:46)
#2 _buildPropertiesObject。(包装:polymer/src/common/polymer_描述符。dart:58:24)
#3_HashVMBase&MapMixin&&u LinkedHashMapMixin.forEach(dart:collection patch/compact_hash.dart:340)
#4构建属性对象(包:polymer/src/common/polymer\u描述符。dart:56:16)
#5 createPolymerDescriptor(包:polymer/src/common/polymer_描述符。dart:26:19)
#6 PolymerRegister.initialize(包:polymer/src/common/polymer\u register.dart:19:36)
#7个加载初始值设定项。。(包:initialize/src/static_loader.dart:46:32)
#8_runInitQueue(包:initialize/initialize.dart:35:24)
#9_runInitQueue。(包:初始化/初始化。dart:38:26)
#10_RootZone.runUnary(dart:async/zone.dart:1149)
#11 _Future._propagateToListeners.handleValueCallback(dart:async/Future_impl.dart:502)
#12未来传播到侦听器(dart:async/Future\u impl.dart:585)
#13 _Future._completeWithValue(dart:async/Future\u impl.dart:376)
#14.未来。完成。(dart:async/future_impl.dart:430)
#15_微任务循环(dart:async/schedule_微任务。dart:43)
#16_microtaskLoopEntry(dart:async/schedule_microtask.dart:52)
#17"日程安排即时帮助"(dart:html:49254)
#18变异观察者。\u创建。(dart:html:27526)
(匿名函数)
这个应用程序以前运行得很好。 可能的错误

谢谢
Teddy

说来话长,请查看一些细节,以及这个问题的解决方案。

什么样的应用程序?最新的可反射软件包不适用于最新的analyzer软件包。您是否在
pubspec.yaml
中使用了
dependency\u覆盖。抱歉-polymer dart 1.x应用程序-index.html在调试模式下运行。唯一的依赖项覆盖是依赖项覆盖:日志:“0.11.2”我已将包限制为可反射的:“0.3.3”,并在更新->源代码第0.4.6代(was 0.4.5+1)、analyzer 0.26.3(was 0.26.1+14)上进行了以下更改。该应用程序现在运行正常,因此我必须得出结论,reflectable:“0.3.4”存在问题。相关聚合物问题