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

secp256k1 unavailable, reverting to browser version #606

Open
ralyodio opened this issue Mar 25, 2022 · 1 comment
Open

secp256k1 unavailable, reverting to browser version #606

ralyodio opened this issue Mar 25, 2022 · 1 comment

Comments

@ralyodio
Copy link

The error is unclear where its coming from but I get this error:

secp256k1 unavailable, reverting to browser version
8:43:38 AM [vite] Error when evaluating SSR module /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:
ReferenceError: self is not defined
    at /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:2391:72
    at instantiateModule (/home/ettinger/src/oblivion/Catalyze-frontend/node_modules/vite/dist/node/chunks/dep-9c153816.js:56193:15)
8:43:38 AM [vite] Error when evaluating SSR module /node_modules/@dfinity/identity/lib/esm/identity/ed25519.js:
ReferenceError: self is not defined
    at /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:2391:72
    at instantiateModule (/home/ettinger/src/oblivion/Catalyze-frontend/node_modules/vite/dist/node/chunks/dep-9c153816.js:56193:15)
8:43:38 AM [vite] Error when evaluating SSR module /node_modules/@dfinity/identity/lib/esm/index.js?v=7d3a1fc0:
ReferenceError: self is not defined
    at /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:2391:72
    at instantiateModule (/home/ettinger/src/oblivion/Catalyze-frontend/node_modules/vite/dist/node/chunks/dep-9c153816.js:56193:15)
8:43:38 AM [vite] Error when evaluating SSR module /src/lib/auth/openLogin.ts:
ReferenceError: self is not defined
    at /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:2391:72
    at instantiateModule (/home/ettinger/src/oblivion/Catalyze-frontend/node_modules/vite/dist/node/chunks/dep-9c153816.js:56193:15)
8:43:38 AM [vite] Error when evaluating SSR module /src/lib/chat.ts:
ReferenceError: self is not defined
    at /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:2391:72
    at instantiateModule (/home/ettinger/src/oblivion/Catalyze-frontend/node_modules/vite/dist/node/chunks/dep-9c153816.js:56193:15)
8:43:38 AM [vite] Error when evaluating SSR module /src/components/Messages/Test.svelte:
ReferenceError: self is not defined
    at /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:2391:72
    at instantiateModule (/home/ettinger/src/oblivion/Catalyze-frontend/node_modules/vite/dist/node/chunks/dep-9c153816.js:56193:15)
8:43:38 AM [vite] Error when evaluating SSR module /src/routes/messages.svelte:
ReferenceError: self is not defined
    at /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:2391:72
    at instantiateModule (/home/ettinger/src/oblivion/Catalyze-frontend/node_modules/vite/dist/node/chunks/dep-9c153816.js:56193:15)
self is not defined
ReferenceError: self is not defined
    at /node_modules/@dfinity/identity/node_modules/tweetnacl/nacl-fast.js?v=7d3a1fc0:2391:72
    at instantiateModule (/home/ettinger/src/oblivion/Catalyze-frontend/node_modules/vite/dist/node/chunks/dep-9c153816.js:56193:15)

I think its coming from here: import { Ed25519KeyIdentity } from '@dfinity/identity';

@nmattia
Copy link
Collaborator

nmattia commented Mar 29, 2022

hi @ralyodio , can you clarify how you get this? is this a build error, and if so what command are you running and what environment (npm, node versions, OS, etc) are you running this in?

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

2 participants