jonathanpmartins / v-money3

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

running on vite, I get this error: #67

Closed renatosaz closed 2 years ago

renatosaz commented 2 years ago

Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari13" + 2 overrides)

node_modules/.pnpm/v-money3@3.21.0_vue@3.2.37/node_modules/v-money3/dist/v-money3.es.js:225:35:
  225 │       thisNum = this.getNumber() * 10n ** BigInt(diff * -1);
jonathanpmartins commented 2 years ago

I think you are getting this error because of safari13. Taking a look at CanIUse, it is supported only on safari14 and beyond.

renatosaz commented 2 years ago

Thanks for the reply... , but I was running on chrome, not safari. . I had to change this lib, coudln't fix it at all. regards