vercel / pkg

Package your Node.js project into an executable
https://npmjs.com/pkg
MIT License
24.32k stars 1.01k forks source link

build for arm64 in x86 (cross-compiled error?) #1907

Closed cherryWangqaz closed 1 year ago

cherryWangqaz commented 1 year ago

What version of pkg are you using?

5.5.1

What version of Node.js are you using?

14.18.0

What operating system are you using?

ubuntu20.04

What CPU architecture are you using?

x86_86

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

node18-linux-arm64

Describe the Bug

i can build the exec file for node18-linux-x86, it also works for node18-linux-arm64. but many warnings occurred during the compiling. like Failed to make bytecode node14-arm64 for file xxxxxxxxxxxxxxxxxxxxxxx

i can run the exec file for node18-linux-x86 successfully, but it does not work for node18-linux-arm64. ERROR msg: pkg/prelude/bootstap.js:1740 throw error; Error: cannot find module '/sanpshot/xxx/node_modules/@nestjs/common/node_modules/tslib/tslib.js'

Expected Behavior

the exec file for node18-linux-arm64 can work in arm64 machine.

To Reproduce

maybe build exec file for arm64 in x84 machine?

github-actions[bot] commented 1 year 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

github-actions[bot] commented 1 year ago

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.