Intl.Collator for angular-cli vendor.js.map

Posted by: jbasilio on 19 November 2018, 5:29 pm EST

    • Post Options:
    • Link

    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?

  • Posted 22 November 2018, 2:23 am EST

    Hi,

    We were able to replicate the issue at our end and hence it has been forwarded(Internal tracking Id: 354946) to the concerned team for further investigation.

    We will let you know about any updates regarding the same.

    ~Sharad

  • Posted 18 December 2018, 4:47 pm EST

    Hi Sharad:

    Can you give a status update on this?

    Thanks.

    Jim

  • Posted 19 December 2018, 5:06 am EST

    Hi Jim,

    The issue is still with the dev team. Further, we have the team for an update, we will let you know as we hear anything from them.

    Regards

  • Posted 10 January 2019, 4:07 am EST

    Hi Jim,

    The issue is fixed in the nightly-build 5.20183.565 and the fix will be included in the next stable release. You may confirm the same from the following sample which uses the nightly build: http://jsfiddle.net/xn8gpqt6/

    Please note that nightly builds are not tested for production and should not be included in the production builds.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels