1

After announcing new strategy for Dart, i decided to change include from

<script type="application/dart" src="/dart/script.dart"></script>

to

<script type="text/javascript" src="/dart/script.dart.js"></script>

But in that case js-interop seems broken. dart:js.context is empty. Is there any workarounds for this?

dikmax
  • 56
  • 4

1 Answers1

0

It looks like you are missing this script tag:

<script data-pub-inline src="packages/browser/dart.js"></script>

There is also an open issue to fix this http://dartbug.com/23005

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • I have this tag, just didn't mention it because it's not changed. Thanks for issue link, I'll follow it. – dikmax Apr 03 '15 at 08:10
  • It didn't work for me at first but after adding this tag it did. Maybe it is related that you have the script in a subdirectory? – Günter Zöchbauer Apr 03 '15 at 08:12