2
votes

I am trying to compile Spark IDE for chrome apps from https://github.com/dart-lang/spark/tree/master/ide. Steps

  • Opened chrome://flags and enabled experimental api
  • Opened chrome://extensions and "Load unpacked extension" pointed to the local folder for the above code.

The app loads. On loading it is stuck with a loading animation forever

1
Does it work in Dartium for you? Are you actually talking about running in Dartium or building to JavaScript so it can run in Chrome? - Günter Zöchbauer

1 Answers

2
votes

For running in Dartium you need to point to the app directory not the package directory.
You also need to run grind setup to copy the application to the app directory as the readme here says https://github.com/dart-lang/spark/tree/master/ide

I'm not sure this experimental settings are still necessary (probably not if you use a Dart development build which already includes Dartium 36)

For building to JavaScript you run pub build in the package directory and load the extension from build/web/app (normally it is done this way, not sure if this really works with Spark, haven't tried it myself yet)