electron-pos-printer icon indicating copy to clipboard operation
electron-pos-printer copied to clipboard

Unable to use PosPrint with Electron 12.

Open haravich opened this issue 3 years ago • 4 comments

Unable to use PosPrint with Electron 12. I have upgraded the demo with Electron 12 and it breaks. Any suggestions to work with Electron 12. I am using Typescript and Angular 11.

I got Timeout in console.log on error catch

haravich avatar Jun 08 '21 08:06 haravich

Any solution for this?

MohamedJakkariya avatar Jun 29 '21 14:06 MohamedJakkariya

@MohamedJakkariya We need to edit pos-printer.ts and compile again (or) edit pos-printer.js in dist directly. Add webPreferences: { nodeIntegration: true, contextIsolation: false, }

haravich avatar Jun 30 '21 06:06 haravich

@MohamedJakkariya We need to edit pos-printer.ts and compile again (or) edit pos-printer.js in dist directly. Add webPreferences: { nodeIntegration: true, contextIsolation: false, }

It worked! Thanks

davimatos avatar Nov 05 '21 17:11 davimatos

@haravich Thanks for your solution. I appreciated.

MohamedJakkariya avatar Nov 06 '21 15:11 MohamedJakkariya

Hello, This has been fixed. This package now works with the latest version of electron

Hubertformin avatar Oct 27 '22 11:10 Hubertformin