Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 436 forks source link

PhantomJS - Can't find variable: WeakMap #697

Open funliving opened 7 years ago

funliving commented 7 years ago

Issue with PhantomJS - Can't find variable: WeakMap

webpack: Compiled successfully.
09 05 2017 11:26:27.006:INFO [karma]: Karma v0.13.22 server started at http://localhost:9999/
09 05 2017 11:26:27.022:INFO [launcher]: Starting browser PhantomJS
09 05 2017 11:26:29.809:INFO [PhantomJS 2.1.1 (Windows 7 0.0.0)]: Connected on socket l6JolIKKrSALgQquAAAA with id 70349093
PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR
  ReferenceError: Can't find variable: WeakMap
  at C:/src/tests.entry.ts:9
PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR
  ReferenceError: Can't find variable: WeakMap
  at C:/src/tests.entry.ts:9
tuomasi commented 7 years ago

In my case, upgrading karma to 1.7.0 did the job.

ghost commented 6 years ago

In my case phantomj-prebuilt used in https://github.com/serut/spacejam , lib which help make test coverage report for meteor. Get same error, can't find variable WeakMap.

darkguy2008 commented 6 years ago

@tuomasi well I have 2.0.0 and I'm getting the same