Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
Phantom JS weakmap Error

im using webpack, angular 2, karma 0.13, jasmine 2.4.1

i have no reference to weakmap in my application. could not resolve with latest version of phantomjs

***> START:

ts-loader: Using typescript@2.2.2 and C:\\tsconfig.json
26 04 2017 12:48:25.002:INFO [karma]: Karma v0.13.22 server started at http://localhost:9999/
26 04 2017 12:48:25.033:INFO [launcher]: Starting browser PhantomJS
26 04 2017 12:48:27.939:INFO [PhantomJS 2.1.1 (Windows 7 0.0.0)]: Connected on socket 6_yGicfWc30o_UC2AAAA with id 19438296
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***

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

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

In my case I'm using a package which makes use of weakmap. According to this issue on phantom.js (https://github.com/ariya/phantomjs/issues/13652), Phantomjs is not currently keeping up with webkit core.

Recommendations are to select another headless browser or use babel-polyfill.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!