pkg icon indicating copy to clipboard operation
pkg copied to clipboard

The example in the source code (verce/pkg/example) is not working

Open rasata opened this issue 3 years ago • 0 comments

What version of pkg are you using?

5.8.0

What version of Node.js are you using?

12.22.10

What operating system are you using?

Ubuntu 20.04

What CPU architecture are you using?

x86_64

What Node versions, OSs and CPU architectures are you building for?

default

Describe the Bug

Step to reproduce :

  • clone the repo
  • cd into the folder example
  • npm install
  • pkg package.json

The binary is built but is not working, when trying to launch the bundle, we got the following error `openssl config failed: error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library pkg/prelude/bootstrap.js:23 const { isRegExp } = require('util').types; ^

TypeError: Cannot destructure property isRegExp of 'undefined' or 'null'. at __importDefault.default (pkg/prelude/bootstrap.js:23:37) at pkg/prelude/bootstrap.js:2259:3 at readPrelude (bootstrap_node.js:148:16) at bootstrap_node.js:153:22 at bootstrap_node.js:160:8 at startup (bootstrap_node.js:161:6) at bootstrap_node.js:661:3 `

Expected Behavior

The binary should be working and handling an express server.

To Reproduce

Step to reproduce :

  • clone the repo
  • cd into the folder example
  • npm install
  • pkg package.json
  • launch the generated binary : express-example

The binary is built but is not working, when trying to launch the bundle, we got the following error

rasata avatar Jul 26 '22 09:07 rasata