Open Kieran-Lynn opened 5 years ago
ill look into this thanks
Awesome thanks, If you need any more information from me please let me know, I can send you my rollup config and my code but its failing on the import easybotics statement when trying to compile.
I believe I had a similar problem when using webpack but I cant remember exactly what that error was.
Thanks!
any update @keptan
I looked into it further
I will try and change it, but what's being done is apparently a supported way of importing compiled node-gyp binaries
https://github.com/mapbox/node-pre-gyp
@keptan any update on this?
Line 12 should be importing the nodejs bindings for this module, which will only exist after this module gets built. I'm not familiar with rollup, but the issue may be that rollup isn't actually building the module, so it can't find that file.
I'm assuming this probably isn't a problem anymore, based on the fact the issue's a year and a half old now.
Im trying to use your library in a project of my own and want to be able to build my app using Rollup. But whenever I go to run my script I get
"Error: Cannot find module '/home/pi/node-led-display/dist/build/Release/node-rpi-rgb-led-matrix.node'"
I believe the issue is line 12 in your index.js file. It looks like you're trying to import the old node rpi led matrix (https://www.npmjs.com/package/node-rpi-rgb-led-matrix) but doing it in a weird way. Why wasnt it just listed as a dependency in your package.json? I believe this would fix my issue and my dependency resolver would be able to find the original node-rip-rgb-led-matrix package.