jonathanpmartins / v-money3

Vue3 currency input/directive mask
MIT License
103 stars 27 forks source link

Big integer literals are not available #57

Closed idafoh closed 2 years ago

idafoh commented 2 years ago

I got this error Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1")

image

jonathanpmartins commented 2 years ago

Yes, this is correct. The configured target should be "es2020", take a look at this post: https://www.freecodecamp.org/news/javascript-new-features-es2020/

BigInt (used by this project) is a new feature in es2020 and beyond.

fylica commented 2 years ago

es2020 alone is not enough to make it work. Check your browser/version list from this table, and adjust their versions accordingly.

jonathanpmartins commented 2 years ago

@fylica you are right. This is the table that I grab from caniuse.com Screenshot from 2022-03-19 04-00-01