jonathanpmartins / v-money3

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

Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1") #89

Closed satish123satish123 closed 9 months ago

satish123satish123 commented 10 months ago

I am getting this error

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

node_modules/v-money3/dist/v-money3.mjs:107:22:
  107 │     w(this, "number", 0n);
PWTK commented 10 months ago

@satish123satish123 I faced the same problem, Please try this.

jonathanpmartins commented 9 months ago

The browser targets should have at minimum these entries:

("es2020", "safari14")

Change your browser targets from this:

("chrome87", "edge88", "es2019", "firefox78", "safari13.1")

To this:

("chrome87", "edge88", "es2020", "firefox78", "safari14")

It should work!