Closed tonosama-atlacatl closed 8 years ago
Adding a reflectable transformer took care of the problem:
- reflectable:
entry_points:
Sounds like you're running the code from console application main()
instead of from a browser <script type="application/dart" src="index.dart">
.
I just duplicated index.html into my own entry point...this file simply calls a custom component inside Lib, this component just has the bwu_datagrid import. If I don't create a - reflectable entry_point for my new html...I get this:
Uncaught Unhandled exception:
Bad state: Reflectable has not been initialized. Did you forget to add the main file to the reflectable transformer's entry_points in pubspec.yaml?
If I remove bwu_datagrid, no need for the reflectable entry_point. Is this the correct requirement? If I create a custom component that wraps bwu_datagrid, will all my entry points need to be added to the reflectable entry_points?
I think this is my deal....Polymer 1 requires the reflectable duplicate entry_point....a departure from 0.16 I guess... Thank you for help!
Glad to hear you figured it out! Thanks for the update.
_Please forgive me if this is more of a "StackOverflow" type of issue. I'v been trying to get a polymer 1 project started, but so far, bringing this on my ".yaml":
I'm only using the sample polymer template project from intellij..., just adding the bwu_datagrid references to the .yaml, I get this pub error:
I'm using SDK 1.15 and polymer 1.0.0-rc6
I've tried replicating all the imports similar to your examples, and so far, no luck, I get the same error. Removing the bwu_datagrid dependencies will allow me to run the dummy example.
Is there something else I'm missing on my .yaml? or something else I should do before using bwu_datagrid?
Thanks,
Alex