igorklopov / enclose

Compile your Node.js project into an executable
http://enclosejs.com
Other
936 stars 43 forks source link

node-mcp23017 module doesn't work #137

Closed scramble45 closed 7 years ago

scramble45 commented 7 years ago

Using: enclose@2.2.0 full version / Node v6.4.0

https://www.npmjs.com/package/node-mcp23017

$ enclose mcp23017.js

/node_code/node_modules/i2c/main.js
  error  Cannot find module './lib/i2c' from '/node_code/node_modules/i2c'

Any suggestions?

igorklopov commented 7 years ago

i2c is written in CoffeeScript and published in CoffeeScript as well. However it is not good because:

scramble45 commented 7 years ago

So I converted the node-i2c library to native javascript from coffee script. Seems to be working: https://github.com/scramble45/i2cjs

I have modified my node-mcp23017 fork to point to this: https://github.com/scramble45/i2cjs, Now I am seeing this when I try to enclose:

 $ enclose mcp23017.js

/node_code/node_modules/node-mcp23017/node_modules/i2c/build/Release/i2c.node
  warning  Cannot include native addon into executable.
  The addon file must be distributed with executable.

Any suggestions, I am fine with moving the i2c.node to the running folder it doesn't need to be enclosed I just need to code enclosed.

scramble45 commented 7 years ago

resolved