Replies: 1 comment 1 reply
-
The reasons seems to be that pkg does not correctly support dynamic package exports that we use a lot. It basically is about https://github.com/project-chip/matter.js/blob/main/packages/main/package.json#L66-L159 You might want to check how pkg can be treated to use them and not consider them as absolute packages ALternative look at the esbuild bundling we hve in the examples ... I will convert this into a discussion becauseit is no bug or code defect |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to compile my code to executable using pkg and getting errors for missing dependencies
https://github.com/simple-hub-organization/simple-hub/tree/master/apps/hub_javascript
Steps to reproduce in node.js
npm install
andpkg hello.js
I am getting the following error
As you can see there 2 types of warnings from matter, "Warning Cannot find module" and "Warning Failed to make bytecode node18-x64 for file".
It does create an executable but when it runs it returns an error
Beta Was this translation helpful? Give feedback.
All reactions