Open plumbn opened 4 years ago
@plumbn See this fork https://github.com/thiagoelg/node-printer
@grahamnordstrom @thiagoelg/node-printer works without any issues for me, can you please direct me why this is happening on @tojocky/node-printer ?
@grahamnordstrom @thiagoelg/node-printer works without any issues for me, can you please direct me why this is happening on @tojocky/node-printer ?
Honestly no idea. I just found that the forked project from thiagoelg works.
Same happens to me in node v10.11.0 in Mint 19.1 https://github.com/tojocky/node-printer/issues/274#issuecomment-566820292 solved it though
I'm attempting to use node-printer in an electron 7.1.3 app. As per the docs, I've tried installing the library using
npm install printer --runtime=electron --target=7.1.3 --target_arch=x64
. It appears to install successfully but when I try to import it in main.js, I get the following error:Since I'm getting an ELF header error, I wonder if I'm just importing it incorrectly. I'm using
const printer = require('printer');
. I also tried building after install as described in the docs and I tried using electron-rebuild. Both failed to build. Obviously that's not reassuring, but before diving down the rabbit hole of what's going on there, I thought I'd rule out the simple issue first. Any idea what might be going on?