ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

version 11.1.4 not working in IE 11

Open Yermi opened this issue 4 years ago • 2 comments

related to #337, #425.

after installing '11.1.4' version, IE browser stopped working and display a blank page. console logs syntax error that points to MaskApplierService which is probably caused by the use of Array.prototype.includes which is not supported in IE 11.

in polyfills.ts file i add import 'core-js' which should contain the include but it doesn't work.

🌍 Environment

ngx-mask: 11.1.4 Angular Version: 9.1.12 core-js: 3.6.4,

image image

Yermi avatar Apr 22 '21 13:04 Yermi

In polyfills, try with:

import 'core-js/modules/es.array.includes';

Also I think you may need to be running your app using a prod build rather than through a dev server start, as Angular doesn't do the build for es5 unless it's a prod build.

ColinMorris83 avatar Apr 22 '21 16:04 ColinMorris83

Hi

In a second thought, I think it has probably nothing to do with the includes method. it still not working even after adding to polyfills.ts all imports that are conceivable.

For me, the solution was to downgrade the package to 9.1.4 that works perfectly for me even without prod build, but above that version still not working in IE.

Yermi avatar Apr 26 '21 08:04 Yermi

@Yermi Thank you that using ngx-mask . I believe that @ColinMorris83 totally right . Only what we need it is right pollyfils for old environment . Also in general we no plan to support IE ( As we remember Microsoft stopped support this product long time ago).

NepipenkoIgor avatar Sep 13 '22 14:09 NepipenkoIgor