ember cli - ReferenceError: Can't find variable: define at http://localhost:7357/assets/test-loader.js, line 3 -


i'm upgrading ember cli addon 0.1.9 0.2.0, , hitting error when running ember test --server:

referenceerror: can't find variable: define @ http://localhost:7357/assets/test-loader.js, line 3

ember serve works, , can visit /tests in browser, else seems have broken testem/phantom setup.

i've upgraded phantom, , went through ember init diffs several times, must still missing something.

the problem had used es6 syntax in 1 of files in /addon. es6 isn't supported there (yet), throwing error.

removing es6 (in case, ticks) solved problem.

update

simply npm install --save ember-cli-babel in addon babel support files in /addon directory.


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -