Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using Vue3 and Vite #75

Open
FabianMontoya opened this issue Jan 15, 2023 · 3 comments
Open

Error using Vue3 and Vite #75

FabianMontoya opened this issue Jan 15, 2023 · 3 comments
Labels
need more info I need to replicate this error, can you help me out with a sketch code? question Further information is requested

Comments

@FabianMontoya
Copy link

Hello, I'm getting an error when I add the library to my project build with Vite and Vue3 with TS.

"vue": "^3.2.45",
"v-money3": "^3.22.3",
"typescript": "~4.7.4",
"vite": "^3.2.4",
"vue-tsc": "^1.0.9"

When I run npm run dev cmd, I get the following error:

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

    node_modules/v-money3/dist/v-money3.mjs:107:22:
      107 │     w(this, "number", 0n);
          ╵                       ~~

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

    node_modules/v-money3/dist/v-money3.mjs:158:39:
      158 │     return i > 0 ? s = n.getNumber() * 10n ** BigInt(i) : i < 0 && (a = this.getNumber() * 10n ** BigInt(i * -1)), [a, s];
          ╵                                        ~~~

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

    node_modules/v-money3/dist/v-money3.mjs:158:91:
      158 │     return i > 0 ? s = n.getNumber() * 10n ** BigInt(i) : i < 0 && (a = this.getNumber() * 10n ** BigInt(i * -1)), [a, s];

image

I only run the cmd npm i v-money3 --save
Later in main.ts :

import money from 'v-money3';

const app = createApp(App);

app.use(money);

And also I tryed with

import { Money3Directive } from 'v-money3';

const app = createApp(App);

app.directive('money3', Money3Directive);

And I get the same error.

Thanks in advace for check the error.

@daviddesmet
Copy link

Have you tried this? #70

@FabianMontoya
Copy link
Author

Yep, and nothing changes

@jonathanpmartins
Copy link
Owner

Will appreciate very much if you could give me a working example with the problem.

@jonathanpmartins jonathanpmartins added question Further information is requested need more info I need to replicate this error, can you help me out with a sketch code? labels Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info I need to replicate this error, can you help me out with a sketch code? question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants