google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 580 forks source link

Version 0.0.94 onwards giving errors in PhantomJS #2085

Open neilathomson2 opened 8 years ago

neilathomson2 commented 8 years ago

I cannot update past version 0.0.93. Every version beyond that gives the following error:

PhantomJS 2.1.1 (Windows 8 0.0.0) ERROR: 'nextOrThrow@http://localhost:9876/base/node_modules/traceur/bin/traceur-runtime.js?aa753410919aee28e19093747a8bb20032cd4fb7:1318:16
next@http://localhost:9876/base/node_modules/traceur/bin/traceur-runtime.js?aa753410919aee28e19093747a8bb20032cd4fb7:1381:25
from@http://localhost:9876/base/node_modules/traceur/bin/traceur-runtime.js?aa753410919aee28e19093747a8bb20032cd4fb7:2953:74
createArrayFromMap
values
resolveProviders
resolve
resolveAndCreate
createInjector
setBaseTestProviders
http://localhost:9876/base/karma-test-shim.js?2d54ef246811a1d54b984e849d98b68564f51d7e:29:33
$@http://localhost:9876/base/node_modules/systemjs/dist/system-polyfills.js:4:15985
H@http://localhost:9876/base/node_modules/systemjs/dist/system-polyfills.js:4:15614
when@http://localhost:9876/base/node_modules/systemjs/dist/system-polyfills.js:4:19288
run@http://localhost:9876/base/node_modules/systemjs/dist/system-polyfills.js:4:18327
_drain@http://localhost:9876/base/node_modules/systemjs/dist/system-polyfills.js:4:7018
drain@http://localhost:9876/base/node_modules/systemjs/dist/system-polyfills.js:4:4179
e@http://localhost:9876/base/node_modules/systemjs/dist/system-polyfills.js:4:10375
run@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?572d97c64312c5d52018e95b072a38b5443b057e:1217:29
zoneBoundFn@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?572d97c64312c5d52018e95b072a38b5443b057e:1194:29'

I haven't tried any other browsers yet, I'm in the middle of making a repo exhibiting this problem.

neilathomson2 commented 8 years ago

I have created the repository here:

The repository as it stands is working. To reproduce the issue upgrade the traceur dependency in package.json beyond 0.0.93:

"traceur": "0.0.94",

Then run:

npm install npm run test

I'm running Windows 10.

johnjbarton commented 8 years ago

It would be very helpful if you can narrow down this issue to the code that involves Traceur. I guess you are running a test for the project angular-2-seed via karma-phantomjs and using traceur for preprocessing. I guess that test fails at runtime giving the call stack posted. If we had just small bit of JS that demonstrated the fail we could try variations to isolate the problem.

johnjbarton commented 8 years ago

Were you able to sort this out? Do newer versions work?