vue-currency-input: Including vue-currency-input in vue project breaks IE 11 & Edge
Hi,
First of all, thank you for providing this library.
I just found out that a Vue project created with @vue/cli that uses vue-currency-input breaks in Internet explorer 11 and in Microsoft Edge with the following error
"Expected identifier, string or number"
The way to reproduce the problem is simple.
create a new project with vue with the defaults. Follow the instructions in https://dm4t2.github.io/vue-currency-input/guide/ to add Vue Currency to the project, run the project with yarn serve and open the url with IE 11 or MS Edge.
This kind of errors is usually caused by a trailing comma somewhere, but wasn’t able to find one.
Best regards, Rodrigo
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (7 by maintainers)
Good news: In the next release (probably 1.19.0) the requirement for Intl.NumberFormat.prototype.formatToParts() will be dropped again.
Release 1.19.0 is now available 🤤
Please faster 😄 my users with safari 10 are indignant
Hi, since 1.18.0 browser support for Intl.NumberFormat.prototype.formatToParts() is required or needs to be polyfilled.
Adding the following snippet to your
main.js
should work:You can also use a version < 1.18.0 if you don’t need support Arabic/Persian numbers.
Thanks for your suggestion. I will add it in the docs.
Good news: IE11 will be supported in the next release (1.6.0) 🎉