Library: IE 11 not working

Created on 26 Feb 2018  ยท  22Comments  ยท  Source: zxing-js/library

I know, the Browser is a pain in the ass but it should work with IE 11 as well

P0 bug docs has polyfill browser wontfix

Most helpful comment

Also figured out why IE is crashing but edge is not. In @zxing/library you used Uint8ClampedArray.from and Int32Array.from functions and as developer I love the implementation, but those are not covered by default polyfills of angular, the correct polyfill is
import 'core-js/es6/typed';
which is solution for IE11, hope this will help in the future :slightly_smiling_face:

All 22 comments

Oh no! ๐Ÿ˜ข

Let's give this dinossaur ๐Ÿฑโ€๐Ÿ‰ some attention.

As pointed by @andrevargas:

yarn build:before && tsc && tsc --target es2017 --outDir esm5 && webpack && webpack --env.prod

TS compiler is targeted to output ES6 files and is outpiting these in the ES5 folder. ๐Ÿคฆโ€โ™‚๏ธ

This is probably what's causing the issue https://github.com/zxing-js/ngx-scanner/issues/93.

Hi guys I'm the author of https://github.com/zxing-js/ngx-scanner/issues/93 Just FYI the build is not only thing that is crashing IE,I've build es5 correctly on my local and tested. I noticed few issues with using Array.from function which is crashing IE as well, after some modifications it worked but only on edge, for some reason IE kept loading script, not sure why. Also I failed on building the plugin under prod. I have deadline coming and I will be eternally in your debt if you can give me working release in upcoming few days :smirk:

Next monday we have a release scheduled, probably will be made on next sunday (20). I will do what I can to deploy this little guy working. ;)

@devgrigor did you checked your polyfills? IE is known by requiring them to work properly. Wating for this feedback.

@odahcam Yes. All polyfills are imported in polyfills.ts

Sh*t! I believe that as a first step we must publish the right EcmaScript files ASAP, then let's investigate the IE dinossaur. ๐Ÿฑโ€๐Ÿ‰

Build target fixed in 04fac3b. ๐Ÿ™‚

Thanks @odahcam I noticed the correct files and I really don't wan't to be a need-picky a*$hole here, but ngx-scanner is still using version 0.3.2 and is always installing that instead of new one, even after
npm cache clean --force

Also figured out why IE is crashing but edge is not. In @zxing/library you used Uint8ClampedArray.from and Int32Array.from functions and as developer I love the implementation, but those are not covered by default polyfills of angular, the correct polyfill is
import 'core-js/es6/typed';
which is solution for IE11, hope this will help in the future :slightly_smiling_face:

So that's not a bug with the package itself?
Do you think we should add it to the docs as "How to support IE/Edge"?

No the bug is just missing special pollyfill and yes I believe mentioning that will help others.
Only thing that I'm waiting to close IE issue is the ngx-scanner's new version with updated dependency of library package

I believe that because of our dependency in ^0.3.2, npm will just downloads the latest minor version, which is ^0.5.0. A npm install without package-lock is worth a try.

yep, which is done several times now. npm update too. Same result
Just tried npm install @zxing/library@^0.3.2 on empty folder and still installed the 0.3.2

Oh, I can try to publish a dev version there so we can test it. Also, I would like to ask to keep this issue open until we add that note about IE in the wiki, thanks. ๐Ÿ˜„

ok. sure :slightly_smiling_face: Looking forward to it

@odahcam can you tell me when I can expect the dev version with new dependency ?

Sorry, something about this weekend. :/

You can also clone the ngx-scanner repo, ng serve it and test the app on IE. ๐Ÿ˜‰

I know it will work on IE, already tested :slightly_smiling_face: but I need it to work on server. Can I commit the change and make it dev release. If yes please let me know how exactly to do that

I will release v0.5.1 with this issue open, please test it to see if it works with the new version. Thx!

Closing as this seems to be resolved by polyfills presented in readme and build fixes.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

boruchsiper picture boruchsiper  ยท  7Comments

arthurmmedeiros picture arthurmmedeiros  ยท  3Comments

sabasayer picture sabasayer  ยท  3Comments

lenny76 picture lenny76  ยท  10Comments

sethusuryateja picture sethusuryateja  ยท  6Comments