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.

"Intl not available" errors in some IE11 settings for recent Windows updates

See original GitHub issue

Hi! I’m working on an enterprise project that consumes Luxon. We’re getting reports of an “Intl not available” bug that seems to be present on IE11 in certain settings (like a nonexistent manifest file) for some recent (March 2019) updates of Windows. (relevant: Microsoft forum thread; StackOverflow thread.) Our stacktrace goes back to the hasIntl function - it appears that the very act of referencing Intl to check if it exists is throwing this error.

I think a workaround could be as simple as adding a try/catch block surrounding hasIntl’s logic. The catch block would swallow the error return false to any consumers of hasIntl. This thread has some links to PRs with alternative solutions, like conditional polyfills, but given that Luxon already has robust workarounds for Intl not being defined, it seems like adding some more hardening to the hasIntl function would be a satisfactory solution here. This bug also seems relatively rare on our end, so I don’t expect many people to travel the catch path anyway. I forked Luxon to experiment with this change and it fixes the bug in our case.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gokulsivacommented, Jul 3, 2019

@gokulsiva yay, thank you so much! If you want a reference, this is what we did in our forked luxon project to get it to work for our project. I’m excited to see this patch go in!

@phinch thank you for your reference.

0reactions
gokulsivacommented, Jul 3, 2019

@icambron Submitted a PR for this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE11: TypeError: Intl is not available - Stack Overflow
If it's Win 8, IE will avoid loading Windows.Globalization.dll and continue to load jsIntl.dll. This works fine for IE11 and the Weboc with ......
Read more >
TypeError: Intl is not available - MSDN - Microsoft
I am getting an error: "TypeError: Intl is not available" on IE11. What does "TypeError: xxx is not available" mean?
Read more >
Web viewer error - "Intl is not available". Under window server ...
Display error on web viewer as "Intl is not available": Window Server 2012; Windows 8, Window 8.1. Try: Open the IE security allow...
Read more >
ZoomText and Fusion Legacy Versions Release Notes
You can run the update wizard manually at any time or configure the ... some systems, after installing ZoomText a “Not properly installed”...
Read more >
Browsers are crashing with error code 0xc0000022 after ...
Microsoft has not responded to the claims yet. ADVERTISEMENT. While it looks to be an issue that is caused by the latest Windows...
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