Posted 19 November 2018, 5:29 pm EST
Hi:
Using the newest wijmo from npm is causing the following error when I try to run our unit tests using phantomjs:
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
TypeError: undefined is not constructor (evaluating 'new Intl.Collator')
at http://localhost:9876_karma_webpack_/vendor.js:190213
On that line in the .map file is
window.Intl?new Intl.Collator:null,t}()
The ‘Intl’ api is imported in my polyfills, but Intl.Collator is not part of that polyfill (by design of the polyfill).
Can you instead check for window.Intl.Collator before trying to constructor it?
