I am trying to build a Dart client-side project using Polymer. I have followed numerous different instructions found online. For example I have followed the instructions given here:
http://radar.oreilly.com/2013/09/build-reusable-widgets-for-the-web-with-polymer-and-dart.html
When I do that and I compile using 'pub build' I find that the only dart files that are built to corresponding js files are ones that have a 'main' method in them. For example, no auto_complete.dart.js or auto_complete.dart.precompiled.js is created.
I can cause these files to be created by adding a 'main', but that does not seem right to me or to the responders in the following thread:
https://groups.google.com/a/dartlang.org/forum/#!topic/misc/8JfbwwCodrA
If I import the dart file into my main dart file then the javascript is included with that. However nothing shows for the templates and I see a message in the chrome 36 console saying auto_complete.dart.precompiled.js can't be found.
I would put all the code in here but the problem shows regardless of what code examples I use. For example it shows when using the code for this example, as-is except for upgrading the ObservableMixin to Observable and putting in the constructor:
http://radar.oreilly.com/2013/09/build-reusable-widgets-for-the-web-with-polymer-and-dart.html