ReferenceError: cannot find variable: define at http: // localhost: 7357 / assets / test-loader.js, line 3

I update my admin with Ember CLI from 0.1.9 to 0.2.0 and click this error on startup ember test --server:

ReferenceError: cannot find variable: define at http: // localhost: 7357 / assets / test-loader.js , line 3

ember serveworks, and I can visit /testsin the browser, but something else seems to have broken the testem / phantom installation.

I updated Phantom and went through ember initdiff several times , but I still have to skip something.

+4
source share
1 answer

, ES6 /addon. ES6 (), .

ES6 ( ) .

Update

npm install --save ember-cli-babel , Babel /addon.

+5

All Articles