Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未捕获类型错误:无法读取属性';应用';未定义dart聚合物的制备_Dart_Dart Polymer - Fatal编程技术网

未捕获类型错误:无法读取属性';应用';未定义dart聚合物的制备

未捕获类型错误:无法读取属性';应用';未定义dart聚合物的制备,dart,dart-polymer,Dart,Dart Polymer,我是飞镖和聚合物的初学者。当我在Chrome中运行web应用程序时,几秒钟后我得到: Uncaught TypeError: Cannot read property 'apply' of undefined js_dart2js.dart:310 JsObject.callMethod$2 js_dart2js.dart:310 _hookJsPolymer loader.dart:115 startPolymer loader.dart:55 initPolymer loader.dart:

我是飞镖和聚合物的初学者。当我在Chrome中运行web应用程序时,几秒钟后我得到:

Uncaught TypeError: Cannot read property 'apply' of undefined js_dart2js.dart:310
JsObject.callMethod$2 js_dart2js.dart:310
_hookJsPolymer loader.dart:115
startPolymer loader.dart:55
initPolymer loader.dart:33
main init.dart:21
_IsolateContext.eval$1 isolate_helper.dart:432
startRootIsolate isolate_helper.dart:97
(anonymous function) arrrrivals.html_bootstrap.dart.js:24907
(anonymous function) arrrrivals.html_bootstrap.dart.js:24908
init.currentScript arrrrivals.html_bootstrap.dart.js:24886
(anonymous function) arrrrivals.html_bootstrap.dart.js:24899
(anonymous function) interop.dart:13
javascript有许多类似的问题,但dart只有一个问题:。然而,答案只是要求提供更多信息。我尝试了“pub build--mode=debug”和“pub-service--mode=debug”,还尝试了在pubspec.yaml中添加转换器,但我一直感觉我的构建代码被缩小了。Arrrivals是我的应用程序。我怎样才能解决这个问题

---编辑---

在Dartium中进一步完善我的应用程序后,此错误(针对Chrome)发生了变化:

这是一个非常重要的问题。注释7中的技巧让我一次性成功地构建javascript版本。将在Dart 1.6中解决

Uncaught TypeError: Cannot read property 'element' of undefined prototype.js:205
f.findTypeExtension prototype.js:205
f.findTypeExtension prototype.js:206
f.registerPrototype prototype.js:190
f.register prototype.js:26
JsFunction.apply$2$thisArg js_dart2js.dart:337
_hookJsPolymer_registerDart.call$3 loader.dart:135
Primitives_applyFunction js_helper.dart:1066
_callDartFunction core_patch.dart:51
(anonymous function) js_dart2js.dart:103
d._register polymer-element.js:64
e.flush queue.js:128
e.ready queue.js:135
e.check queue.js:89
e.go queue.js:69
d.registerWhenReady polymer-element.js:53
d polymer.js:49
b polymer.js:36
JsFunction.apply$2$thisArg js_dart2js.dart:337
JsFunction.apply$1 js_dart2js.dart:339
Polymer_register instance.dart:170
main_closure50.call$0 arrrrivals.html_bootstrap.dart:165
startPolymer iterable.dart:310
initPolymer loader.dart:33
main init.dart:21
_IsolateContext.eval$1 isolate_helper.dart:432
startRootIsolate isolate_helper.dart:97
(anonymous function) arrrrivals.html_bootstrap.dart.js:26379
(anonymous function) arrrrivals.html_bootstrap.dart.js:26380
init.currentScript arrrrivals.html_bootstrap.dart.js:26358
(anonymous function) arrrrivals.html_bootstrap.dart.js:26371
(anonymous function) interop.dart:13