thiagoelg / node-printer

Native node.js printer
131 stars 79 forks source link

Error: Module did not self-register #31

Closed KirisakiAria closed 2 years ago

KirisakiAria commented 2 years ago

Node 14.4.0

Vue 2.6.11 + Electron 13.0

I added electron using the "vue add electron" command in vue-cli, the project is running well. But when I import node-printer, the following exception will be prompted.

Error: Module did not self-register: '\?\D:\Project\printer\node_modules\@thiagoelg\node-printer\lib\node_printer.node'.

2 This print is a method bound to the button.

1

gathrlabs commented 2 years ago

Hey @KirisakiAria, did you find a solution for this issue?

joserick commented 1 year ago

Solution: