Closed Jey0707 closed 8 months 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.5.1
What version of Node.js are you using?
v16.15.1
What operating system are you using?
Windows
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
node16-win-x64
Describe the Bug
I'm creating a pkg with a compiled typescript build with an imported .dll file with ffi-napi and I'm getting this error:
Error: Dynamic Linking Error: Win32 error 126 at new DynamicLibrary (C:\snapshot\Amazon Bot\node_modules\ffi-napi\lib\dynamic_library.js:75:11) at Library (C:\snapshot\Amazon Bot\node_modules\ffi-napi\lib\library.js:47:10)
I have checked if the path to the file is correct and yes, it is. This is my package.json
I have also checked and tried the solutions from https://github.com/vercel/pkg/issues/1744 but do not work for me.
I'm calling the .dll in this way:
Expected Behavior
.exe starts without error
To Reproduce
Run npm run pkg and the executable will show this error: Error: Dynamic Linking Error: Win32 error 126 at new DynamicLibrary (C:\snapshot\Amazon Bot\node_modules\ffi-napi\lib\dynamic_library.js:75:11) at Library (C:\snapshot\Amazon Bot\node_modules\ffi-napi\lib\library.js:47:10)