When I create a new application using the Polymer library, it creates a sample project. The project works fine in Dartium, but when I compile (using pub build) it no longer works.
I get two 404 and unsached typeerror.
Here is my console output in Chrome.
GET file:///home/michael/Code/sample/build/web/packages/shadow_dom/shadow_dom.debug.js sample.html:1
GET file:///home/michael/Code/sample/build/web/packages/custom_element/custom-elements.debug.js sample.html:2
Uncaught TypeError: Object #<HTMLDocument> has no method 'registerElement' sample.html_bootstrap.dart.js:6681
wi sample.html_bootstrap.dart.js:6681
ei sample.html_bootstrap.dart.js:9102
Ok sample.html_bootstrap.dart.js:9099
QL sample.html_bootstrap.dart.js:2184
aX.vV sample.html_bootstrap.dart.js:759
Vg sample.html_bootstrap.dart.js:644
(anonymous function) sample.html_bootstrap.dart.js:12464
init.currentScript sample.html_bootstrap.dart.js:12444
(anonymous function) sample.html_bootstrap.dart.js:12458
(anonymous function) sample.html_bootstrap.dart.js:12585
These files exist in build/web/packages/, so I'm not sure why I get 404.
This worked fine before I upgraded to the latest Dart SDK (dev channel). This is just a mistake there, what could happen?
Thank.
Update:
I saw a Dart issue with which I had another problem, so I applied them to fix in the sample project, and now I get only Uncaught TypeError. Now my conclusion is as follows:
Uncaught TypeError: Object #<HTMLDocument> has no method 'registerElement' sample.html_bootstrap.dart.js:6518
wi sample.html_bootstrap.dart.js:6518
ei sample.html_bootstrap.dart.js:8949
Ok sample.html_bootstrap.dart.js:8946
QL sample.html_bootstrap.dart.js:2142
aX.vV sample.html_bootstrap.dart.js:725
Vg sample.html_bootstrap.dart.js:587
(anonymous function) sample.html_bootstrap.dart.js:12313
init.currentScript sample.html_bootstrap.dart.js:12293
(anonymous function) sample.html_bootstrap.dart.js:12307
(anonymous function) sample.html_bootstrap.dart.js:12434