Closed OrrLumigo closed 2 years ago
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.
What version of pkg are you using?
@5.3.2
What version of Node.js are you using?
12.22.1
What operating system are you using?
linux
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
"node14-linux-x64"
Describe the Bug
i am running the script:
this is the package.json:
and sometimes not always i get this error:
/usr/bin/pkg -> /usr/lib/node_modules/pkg/lib-es5/bin.js
Error: Cannot find module './functions/rsort' Require stack:
lumigo-tracer-extension: 6 - failed! Could not deploy: Packaging tracer-extension executable... /usr/bin/pkg -> /usr/lib/node_modules/pkg/lib-es5/bin.js
Error: Cannot find module './ranges/simplify' Require stack:
/usr/lib/node_modules/pkg/lib-es5/bin.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/usr/lib/node_modules/pkg/node_modules/semver/index.js:46:18)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/lib/node_modules/pkg/node_modules/semver/index.js',
'/usr/lib/node_modules/pkg/node_modules/pkg-fetch/lib-es5/index.js',
'/usr/lib/node_modules/pkg/lib-es5/index.js',
'/usr/lib/node_modules/pkg/lib-es5/bin.js'
this happens to all versions above 5.3.2 as well
Expected Behavior
expect it to create the executable
To Reproduce
this is not always reproducing it is a flaky behavior.
running in circleci with the node12