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

Has anyone tried using this in a NuxtJS project? #163

Closed
bilthon opened this issue Mar 23, 2023 · 4 comments
Closed

Has anyone tried using this in a NuxtJS project? #163

bilthon opened this issue Mar 23, 2023 · 4 comments

Comments

@bilthon
Copy link

bilthon commented Mar 23, 2023

I found several issues while trying to do that, fixed many, but I'm currently stuck with this weird one that is apparently caused by a dependency.

weierstrass.ts?d966:1068 Uncaught TypeError: Cannot convert a BigInt value to a number
    at Math.pow (<anonymous>)
    at SWUFpSqrtRatio (weierstrass.ts?d966:1068:1)
    at mapToCurveSimpleSWU (weierstrass.ts?d966:1137:1)
    at eval (secp256k1.ts?3ff4:250:1)
    at ./node_modules/@noble/curves/secp256k1.js (app.js:155:1)
    at __webpack_require__ (runtime.js:854:30)
    at fn (runtime.js:151:20)
    at eval (index.js?8c36:1:1)
    at ./node_modules/@scure/bip32/lib/esm/index.js (app.js:251:1)
    at __webpack_require__ (runtime.js:854:30)

This is a run-time error I just see in the browser.

@akhavr
Copy link

akhavr commented Mar 23, 2023

Fighting for a week with this bug in akhavr/nostrya#3

Now cleaned to the dumbest possible react page with minimal dependencies. Yet failing.

Freshly created project doesn't give that trace.

@fiatjaf
Copy link
Collaborator

fiatjaf commented Mar 23, 2023

Can you use sourcemaps to try to trace that? Are you using NIP-06?

@bilthon
Copy link
Author

bilthon commented Mar 24, 2023

The error seems to be this one. I'm not sure how to restrict browser targets for nuxtjs, just adding a simple browserlists definition to package.json didn't make it work.

@akhavr
Copy link

akhavr commented Mar 24, 2023

The error seems to be this one. I'm not sure how to restrict browser targets for nuxtjs, just adding a simple browserlists definition to package.json didn't make it work.

akhavr/nostrya#3 (comment) fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants