What is the expected behavior?
Have a fallback for Intl while is not available
What is the current behavior?
Unexpectedly, all the app crashed and "typeError: intl is not available" error is presented at console.
Only IE-11
What are the steps to reproduce?
I Don't know if we can repro this, but I'll give the background story as far as it can help.
While changing the localization -
App crashed on this line:
const hasV8BreakIterator = (typeof Intl !== 'undefined' && (Intl as any).v8BreakIterator);
from this file:
https://github.com/angular/material2/blob/master/src/cdk/platform/platform.ts
with this error: "typeError: intl is not available".
This crash won't let the app start, and there is no fallback.
We manage to fix it while editing the vendor.**.js file, and adding try-catch
block for this line.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 7.2.1
CDK: 7.2.1
TypeScript: 3.2.2
Browsers: IE 11
Is there anything else we should know?
Critical bug, should provide hotfix.
What is the expected behavior?
Have a fallback for Intl while is not available
What is the current behavior?
Unexpectedly, all the app crashed and "typeError: intl is not available" error is presented at console.
Only IE-11
What are the steps to reproduce?
I Don't know if we can repro this, but I'll give the background story as far as it can help.
While changing the localization -
App crashed on this line:
const hasV8BreakIterator = (typeof Intl !== 'undefined' && (Intl as any).v8BreakIterator);
from this file:
https://github.com/angular/material2/blob/master/src/cdk/platform/platform.ts
with this error: "typeError: intl is not available".
This crash won't let the app start, and there is no fallback.
We manage to fix it while editing the vendor.**.js file, and adding try-catch
block for this line.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 7.2.1
CDK: 7.2.1
TypeScript: 3.2.2
Browsers: IE 11
Is there anything else we should know?
Critical bug, should provide hotfix.