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

WIP: submitPubkey #33

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

WIP: submitPubkey #33

wants to merge 4 commits into from

Conversation

ltfschoen
Copy link
Collaborator

@ltfschoen ltfschoen commented Oct 16, 2024

Error when run yarn && yarn run secret:submit

/Users/luke/code/clones/github/svub/nunya/packages/secret-upload-contract/dist/functions/secretpath/generateKeys.js:16
const neutrino_1 = require("@solar-republic/neutrino");
                   ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/luke/code/clones/github/svub/nunya/packages/secret-upload-contract/node_modules/@solar-republic/neutrino/dist/cjs/main.js from /Users/luke/code/clones/github/svub/nunya/packages/secret-upload-contract/dist/functions/secretpath/generateKeys.js not supported.
Instead change the require of main.js in /Users/luke/code/clones/github/svub/nunya/packages/secret-upload-contract/dist/functions/secretpath/generateKeys.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/Users/luke/code/clones/github/svub/nunya/packages/secret-upload-contract/dist/functions/secretpath/generateKeys.js:16:20)
    at Object.<anonymous> (/Users/luke/code/clones/github/svub/nunya/packages/secret-upload-contract/dist/submit.js:45:24) {
  code: 'ERR_REQUIRE_ESM'
}

Node.js v18.17.1

@svub
Copy link
Owner

svub commented Oct 17, 2024

Have a look at the svub-encrypt-payload-client-side branch. Let's create a shared folder for all the secret network related code.

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

Successfully merging this pull request may close these issues.

2 participants