brzpegasus / ember-cli-nwjs

An addon for building desktop apps with Ember and NW.js
MIT License
125 stars 17 forks source link

ember-cli-nwjs doesn't work with ES7 async #57

Open dmagunov opened 8 years ago

dmagunov commented 8 years ago

Hello,

getting following error:

"Uncaught ReferenceError: regeneratorRuntime is not defined",

async start(){
    try {
       let response = await this.get('sync').request(json);
....

In ember-cli-build.js I am using:

var app = new EmberApp(defaults, { babel: { includePolyfill: true } });

On browser works fine

Kilowhisky commented 7 years ago

I'm getting this error with ember 2.9.0+ with simply running the application. It appears to only happen when i build the app for OSX. If i build it for WIN32/64 it works fine.

mwalper commented 7 years ago

Hi, I'm experiencing a similar Problem with ember-concurrency Addon. Works fine in Browser but when building with nw the following error occurred var testGenFn = regeneratorRuntime.mark(function testGenFn() { ^ ReferenceError: regeneratorRuntime is not defined It makes no difference for which OS it's build.