Closed daviddias closed 8 years ago
ok, so PhantomJS error was because I had a older version. Now I have a new error:
AAB with id 32204495
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
SyntaxError: Unexpected token 'const'
at /Users/david/code/protocol-labs/_libp2p/js/js-peer-info/test/index.spec.js:20708
SyntaxError: Unexpected token 'const'
This means that one of your dependencies is not being properly transpiled into ES5. Try
DEBUG=1 npm run test:browse
index.spec.js
and search for const
from the results you should be able to see which modules are not transpiledFound the issue. Seems that peer-id didn't have jsnext:main
defined and so this module thought it was using already the transpiled version (and so, not transpiling it)
The new issue is that js-peer-id also breaks on PhantomJS with:
12 04 2016 21:06:03.040:INFO [launcher]: Starting browser PhantomJS
12 04 2016 21:07:03.039:WARN [launcher]: PhantomJS have not captured in 60000 ms, killing.
12 04 2016 21:07:05.040:WARN [launcher]: PhantomJS was not killed in 2000 ms, sending SIGKILL.
12 04 2016 21:07:07.045:WARN [launcher]: PhantomJS was not killed by SIGKILL in 2000 ms, continuing.
Now yes :) As a reference (for the lolz) -> https://github.com/diasdavid/js-peer-id/pull/17#issuecomment-209088074
@dignifiedquire getting a weird error only on PhantomJS. Thoughts?