我刚刚升级到 Dart 编辑器 0.2.8_r15948,现在我的代码在我升级之前正在运行,当我尝试在 dart 浏览器中运行它时抛出以下异常。看起来 _e11 是我的模板中的 UnknownElement 集:< template iterate='pin in app.MainMap.Pins' >
这是我在 Dartium Launch 中收到的错误消息:
Exception: NoSuchMethodError : method not found: 'get:parentNode'
Receiver: Instance of 'UnknownElement'
Arguments: []
Stack Trace: #0 Element.noSuchMethod (file:///E:/b/build/slave/dartium-win-full-trunk/build/src/build/Release/obj/global_intermediate/webkit/bindings/dart/dart/html/Element.dart:317:7)
1 init_autogenerated.<anonymous closure> (http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.dart:316:43)
2 watchAndInvoke (http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/packages/web_ui/watcher.dart:114:13)
3 init_autogenerated (http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.dart:283:47)
4 main (http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.html_bootstrap.dart:7:30)
关于发生了什么的任何想法?我认为这可能是一个错误,因为在升级到 Dartium 版本 0.2.8_r15948 之前一切正常