我第二次遇到这个问题,却不知道为什么会发生。
我的应用程序刚刚开始运行,在正常模式下没有任何输出,而在 Debug模式下,我得到以下信息
Internal error: 'http://localhost:63342/epimss_polymer_app/web/index.dart': malformed type: line 37 pos 42465: type 'prefix16.property' is not loaded
final _data = {const prefix0.JsProxyReflectable(): new r.ReflectorData(<m.ClassMirror>[new r.ClassMirrorImpl(r"PolymerMixin", r"polymer.src.common.polymer_js_proxy.PolymerMixin", 519, 0, const prefix0.JsProxyReflectable(), const <int>[], const <int>[], const <int>[], -1, {} ....
整个输出在附件中:
输出对我似乎毫无帮助,没有迹象表明发生问题的文件或行。
我正在使用1.13.0-dev.7.3(ref ec143d4)和WebStorm 11 EAP(当前EAP)。
在过去的四天里,我一直被困在代码上,但没有成功。
似乎无法附加整个文件的输出-以前我可以附加文件-现在的链接在哪里?
最佳答案
我只是用这个属性碰到这个:
@property(observer: 'selectedChanged')
bool selected;
@reflectable
selectedChanged(oldVal, newVal) {
print(newVal);
}
实际上应该是
@Property(observer: 'selectedChanged')
(使用大写
@P...
)另请参阅https://github.com/dart-lang/sdk/issues/24751
关于dart - 内部错误: 'http://localhost:63342/epimss_polymer_app/web/index.dart':格式错误的类型:行37 pos 42465:尚未加载 'prefix16.property'类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33365273/