Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] TypeError: undefined is not a constructor (evaluating 'new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"})') #324

Closed
gkiely opened this issue Oct 30, 2019 · 3 comments
Labels
bug Something isn't working library Relates to an Origami library

Comments

@gkiely
Copy link

gkiely commented Oct 30, 2019

Type: Bug report

What

I'm seeing this error reported by android devices, I'm guessing it's a device that doesn't support Intl.

Details

Expected behaviour:
Shouldn't be seeing this error.

Actual behaviour:
Browsers without Intl support are getting this error.

image

@JakeChampion
Copy link
Owner

Hi @gkiely, could you please post the user-agents that you are seeing this error on as well as the full polyfill.io url you are using. With that information we can hopefully figure out what is going on.

@gkiely
Copy link
Author

gkiely commented Oct 30, 2019

URL:
https://polyfill.io/v3/polyfill.min.js?features=default%2CArray.prototype.findIndex%2CURL%2CArray.from%2CArray.isArray%2CArray.prototype.indexOf%2CArray.prototype.find%2CArray.prototype.includes%2CPromise%2CElement.prototype.classList%2CIntl

Browser: Dolphin 1.0.9
OS: Android 4.1.1
UA: Mozilla/5.0 (Linux; U; Android 4.1.1; ko-kr; GT-N7100 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Dolphin/INT-1.0.9 Mobile Safari/534.30

Browser: Android 4.0.3
OS: 4.0.3
UA: Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; SGH-I717R Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

Browser: Android 4.1.2
OS: Android 4.1.2
UA: Mozilla/5.0 (Linux; U; Android 4.1.2; ko-kr; LG-F220K/10c Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

@gkiely gkiely changed the title TypeError: undefined is not a constructor (evaluating 'new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"})') [bug] TypeError: undefined is not a constructor (evaluating 'new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"})') Oct 30, 2019
@JakeChampion JakeChampion transferred this issue from polyfillpolyfill/polyfill-service Nov 21, 2019
@JakeChampion JakeChampion added this to incoming in Origami ✨ Feb 26, 2020
@JakeChampion JakeChampion added bug Something isn't working library Relates to an Origami library labels Mar 24, 2020
@JakeChampion
Copy link
Owner

@gkiely the polyfill.io url you are using does not include a locale to polyfill, that is likely the issue here. If you add Intl.~locale.en-GB or another locale name to the features parameter it should work :-)

Origami ✨ automation moved this from incoming to complete Apr 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2020
@robertboulton robertboulton removed this from Done in Origami ✨ Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working library Relates to an Origami library
Projects
None yet
Development

No branches or pull requests

2 participants