Sunday, December 2, 2012

Running dart2js

It's been a long while since I tried dart2js. In fact it has been so long that it was called frogc when I last saw it. Since I have an open errata for Dart for Hipsters testifying to that fact, this seems like a good time to revisit the command.

When I load my Dart Comics sample app in vanilla Chrome, I am currently seeing the following failure:

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8000/scripts/web/main.dart.js

This is the JavaScript fallback for Dart kicking in. The problem is that I do not have compiled JavaScript to fall back to. So let's see if dart2js can fix this.