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'.
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'.
This print is a method bound to the button.