Dart Polymer Web example no longer working

Hi,

In the process of trying to find out why my web page is blank in all browsers except Chrome. I see from

http://https://pub.dartlang.org/packages/web_components


that I should use

<script src="packages/web_components/webcomponents.min.js"></script>
<script src="packages/web_components/dart_support.js"></script>

Anyway, I wondered if this had already been addressed/updated in the examples, so I tried to create a new one: the "reversed text" example. It no longer works correctly. I've tried Dart SDK 1.13 and 1.14 (Wesbtorm 11.0.1)

It would be nice if the example worked in all browsers by default (which is what I'm really after ).

Here is part of the [generated] pubspec

 
dependencies:
  browser: ^0.10.0
  polymer_elements: ^1.0.0-rc.1
  polymer: ^1.0.0-rc.2
  reflectable: ^0.3.1
  web_components: ^0.12.0


I also tried

 
  polymer_elements: ^1.0.0-rc.4
  polymer: ^1.0.0-rc.9
  reflectable: ^0.4.0


but no luck.
cheers
Steve

5 comments
Comment actions Permalink

Sample Dart projects are powered by Stagehand developed by Google. I've filed an issue in their bug tracker. You'll get the fix in the IDE automatically when they fix the bug and publish updated stagehand version on https://pub.dartlang.org/packages/stagehand.
Thank you for the report!

0
Comment actions Permalink

Hi,
Ah, OK, thanks for the response.
cheers
Steve

0
Comment actions Permalink

The bug is fixed, new version of stagehand is published, and it works fine for me now!
You might need to restart WebStorm to pick the updated stagehand.

0
Comment actions Permalink

Hi,

Yes, it works for me now too. Thanks.

But what do I need to add to get it work in Edge please?  

<script src="packages/web_components/webcomponents.min.js"></script>
<script src="packages/web_components/dart_support.js"></script>


doesn't work for me (and it doesn't work in Dartium)

cheers
Steve

0
Comment actions Permalink

If this question is not related to the IDE, I'm afraid I do not know the answer. I asked in the issue, but that's probably not the best place for such questions as well. Dartlang.org suggests to use stackoverflow for general How-To questions.

0

Please sign in to leave a comment.