jonathanpmartins / v-money3

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

Update vite.config.js #71

Closed luckelite closed 2 years ago

luckelite commented 2 years ago

possible solution for error with vite.

Problem:

`✘ [ERROR] 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.39/node_modules/v-money3/dist/v-money3.es.js:137:34:
  137 │     __publicField(this, "number", 0n);
      ╵                                   ~~

✘ [ERROR] 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.39/node_modules/v-money3/dist/v-money3.es.js:223:41:
  223 │       thatNum = thatNumber.getNumber() * 10n ** BigInt(diff);
      ╵                                          ~~~

✘ [ERROR] 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.39/node_modules/v-money3/dist/v-money3.es.js:225:35:
  225 │       thisNum = this.getNumber() * 10n ** BigInt(diff * -1);`
jonathanpmartins commented 2 years ago

If you are referring to this issue: https://github.com/jonathanpmartins/v-money3/issues/70 Please update your environment configuration to "safari14" first! ES2020 should run fine with this lib.