Skip to content

Binary Built With pkg Throws Error #3

Description

@skykingisepic

Purpose is to use binary in Docker instead of entire npm/node.js image which is huge.

This could easily be attributed to my noobness in js, or...

node: 18.20.5
pkg: 5.8.1

npm install
npm run test
npm run build
pkg -t node18-linux-x64 .

Run test:

./meshcore-decoder 11007E7662676F7F0850A8A355BAAFBFC1EB7B4174C340442D7D7161C9474A2C94006CE7CF682E58408DD8FCC51906ECA98EBF94A037886BDADE7ECD09FD92B839491DF3809C9454F5286D1D3370AC31A34593D569E9A042A3B41FD331DFFB7E18599CE1E60992A076D50238C5B8F85757375354522F50756765744D65736820436F75676172

Error [ERR_REQUIRE_ESM]: require() of ES Module /snapshot/meshcore-decoder/node_modules/@noble/ed25519/index.js from /snapshot/meshcore-decoder/dist/crypto/ed25519-verifier.js not supported.
Instead change the require of index.js in /snapshot/meshcore-decoder/dist/crypto/ed25519-verifier.js to a dynamic import() which is available in all CommonJS modules.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions