question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Polyfill Intl breaking test

See original GitHub issue

Hello,

We are experiencing some problems with the Intl feature. When adding the following polyfill https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en,Intl.~locale.de on our karma configuration file for the unit tests, we receive the following error:

PhantomJS 2.1.1 ERROR
  TypeError: undefined is not an object (evaluating 'Intl.Collator.supportedLocalesOf')
  at https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en,Intl.~locale.de,Element.prototype.classList&flags=gated:6

When removing the Intl feature, all the tests pass properly.

Is this some problem that you’ve already experienced?

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
JakeChampioncommented, Mar 16, 2017
0reactions
JakeChampioncommented, Apr 12, 2017

Yes, I’m working on creating the next release. We have a bit of an issue with generating our compatibility data which is used on https://polyfill.io/v2/docs/features/. Once I have resolved that issue a release will make it’s way to https://qa.polyfill.io and then onto https://polyfill.io if no issues are found during the QA period.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Intl | Testing Library
Decouples strings from tests, so you can update the message files in one place without worrying about breaking tests. Can run tests in...
Read more >
Intl-segmenter-polyfill NPM | npm.io
Intl Segmenter Polyfill. npm version Build WASM Test. Provides .wasm module built with icu4c for breaking text into words, so that we can...
Read more >
intl-segmenter-polyfill - npm package | Snyk
Intl Segmenter Polyfill. npm version Build WASM Test. Provides .wasm module built with icu4c for breaking text into words, so that we can...
Read more >
Learn how to add the Internationalization Polyfill to a Angular ...
The great part about polyfilling is as browser support for Intl gets better we will be able to drop the dependency all together!...
Read more >
@socheatsok78/intl-segmenter-polyfill - npm
Intl Segmenter Polyfill. npm version · Build WASM · Test. Provides .wasm module built with icu4c for breaking text into words, so that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found