Polyfill Intl breaking test
See original GitHub issueHello,
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:
- Created 7 years ago
- Reactions:1
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This should solve the issue – https://github.com/Financial-Times/polyfill-service/pull/1126
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.