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

Doesn't work in IE11 #22

Closed
dmitry-dedukhin opened this issue May 14, 2019 · 12 comments
Closed

Doesn't work in IE11 #22

dmitry-dedukhin opened this issue May 14, 2019 · 12 comments
Projects

Comments

@dmitry-dedukhin
Copy link

Probably this could be fixed by setting target=es5 in tsconfig.json?

@dadepo
Copy link
Member

dadepo commented May 15, 2019

Hi @dmitry-dedukhin
Thanks for bringing this to my attention.

Can you also help include the error message you get in ie11?

That will be appreciated.

@dadepo
Copy link
Member

dadepo commented May 16, 2019

I tested it in ie11 and found out that fat arrows lead to syntax error in ie11. I will change the target to es5. This should make the v1.2.1 release which should be out in a couple of days.

@dmitry-dedukhin
Copy link
Author

dmitry-dedukhin commented May 16, 2019

1
2
Sorry for russian on screenshots but I've not found simple way to switch language in IE11.
In my environment also there was an error related to "class" keywords since IE does not support es6.
I've workaround this by including node_modules/ip-num in babel config.
Finally, I need to include string.prototype.repeat polyfill and all work as expected.

@dadepo dadepo added this to Done in v1.2.0 May 16, 2019
@dadepo
Copy link
Member

dadepo commented May 16, 2019

v1.2.0 has been released with the generated JS now targeting es5. To use it in ie11, unfortunately the polyfil still need to be added :(

Trying to get things to work in ie11 is already sucking out the fun on working on the library, so I would not be spending any more energy/time on this for now. Perhaps in the future I will look into getting things to work out of the box with ie11...or perhaps not.

@dadepo dadepo closed this as completed May 16, 2019
@dmitry-dedukhin
Copy link
Author

Thank you very much!
We are supporting two latest versions of each browser so IE11 is still our target.
I hope this will be changed when MS released edge-over-chromium.

@dmitry-dedukhin
Copy link
Author

I've got an error when update to 1.2.0

22

I just change version in package.json and replace import of IPv4Range to IPv4CidrRange:

import { IPv4 } from 'ip-num/IPv4';
import { IPv4CidrRange } from 'ip-num/IPv4CidrRange';
import { Validator } from 'ip-num/Validator';

11

Seems the error caused by the fact that _super is undefined here.

@dadepo
Copy link
Member

dadepo commented May 17, 2019

Dang! Just took a peek...it seems to be a case of cyclic dependency! I will look into a fix over the weekend...sad that the test suits also did not catch this :(

Thanks for letting me know!

@dadepo dadepo reopened this May 17, 2019
@dadepo
Copy link
Member

dadepo commented May 18, 2019

I pushed a prepatch release, which should fix this issue.

You can Install via npm install --save ip-num@1.2.1-0

It would be appreciated if you can help check if indeed the issue is fixed.

If all is fine, I'll do some little cleaning up and release as soon as possible

@dmitry-dedukhin
Copy link
Author

Hi!

I've checked 1.2.1-0 and all works just fine in chrome, firefox and ie11.
Unfortunately, I have no win10 and ms edge right now and can check it on monday.

Thank you very much for your work!

@dadepo
Copy link
Member

dadepo commented May 18, 2019

Great!

No problem, the release can easily wait till after Monday.

Thanks!

@dmitry-dedukhin
Copy link
Author

dmitry-dedukhin commented May 20, 2019

Hi!
I've checked in ms edge, all is fine!

@dadepo
Copy link
Member

dadepo commented May 20, 2019

Great!
I have published v1.2.1
Thanks for all the help!

@dadepo dadepo closed this as completed May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v1.2.0
  
Done
Development

No branches or pull requests

2 participants