调试 Angular 和 Polymer dart [英] Debuging Angular and Polymer dart
问题描述
我之前问过一个问题关于获得一个可以相互配合的角度和聚合物版本.现在我在 dartium 和 chrome 中运行它时遇到了一些问题.我的代码与上一个问题中的相同.完成后,我将写一篇博文,介绍如何在 dart 中启动和运行 Material Design 应用程序,并在它们出现问题时对其进行更新.叹.再次感谢您的帮助
I asked a question earlier about getting a version of angular and polymer that would play nice with each other. Now I'm having some trouble running it in both dartium and chrome. My code is the same as the in the previous question. When this is done, I'm gonna write up a blogpost on how to get a material design app up and running in dart and update it as they break things. sigh. thanks again for the help
Dartium 输出:
Dartium output:
warning: file:///packages/polymer/polymer.html not found.
warning: file:///packages/paper_elements/paper_tabs.html not found.
warning: file:///packages/paper_elements/paper_tab.html not found.
warning: file:///packages/core_elements/core_header_panel.html not found.
warning: file:///packages/core_elements/core_toolbar.html not found.
Exception: NoSuchMethodError: method not found: 'whenPolymerReady'
Receiver: Instance of 'JsFunction'
Arguments: [Closure: () => dynamic]
Chrome 输出:
No getter for '$'.
STACKTRACE:
Error
at dart.b (file:///index.html_bootstrap.dart.js:1296:3)
at bL.DA (file:///index.html_bootstrap.dart.js:4940:20)
at IP.XK (file:///index.html_bootstrap.dart.js:4093:5)
at am.XT (file:///index.html_bootstrap.dart.js:4273:32)
at am.FP (file:///index.html_bootstrap.dart.js:4263:38)
at am.Ic (file:///index.html_bootstrap.dart.js:4245:8)
at am.Oe (file:///index.html_bootstrap.dart.js:4243:18)
at am.cq (file:///index.html_bootstrap.dart.js:4234:8)
at am.nT (file:///index.html_bootstrap.dart.js:4229:8)
at am.PB (file:///index.html_bootstrap.dart.js:4222:8)
推荐答案
在 angular Transformer 中添加文件列表并将其放置在聚合物的transformer 完成后.这是提交的变化.我能够使用 pub serve
在 Dartium 和 Chrome 中成功运行它.
Adding the list of files in angular transformer and placing it after polymer's transformer worked out. Here's the commit with changes. I was able to run it successfully in Dartium and Chrome with pub serve
.
这篇关于调试 Angular 和 Polymer dart的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!