我刚刚更新了我的dart应用程序并在之后进行了pub缓存修复.
应用程序不运行并且调试抛出以下异常
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)
该应用程序之前运行良好.
可能的错误?
谢谢
泰迪熊
最佳答案 相当长的故事,请查看
https://github.com/dart-lang/polymer-dart/issues/651以获取一些细节,并在此问题解决时解决.