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

Get TimedOut Error In Electron 13 and React

Open AnggaIPT opened this issue 3 years ago • 12 comments

Thank for developing this module, but i got time out error Can you help me to fix this problem ?

AnggaIPT avatar Jan 04 '22 18:01 AnggaIPT

i have the same error

felipemarques avatar Feb 08 '22 02:02 felipemarques

i have the same error

我有同样的错误 are you solve the problem?

maddy-970523 avatar Feb 19 '22 18:02 maddy-970523

i have the same error

when i use electron version 13,make this error,I use the verson 11 to instead it,slove the error,you can try it

maddy-970523 avatar Feb 20 '22 07:02 maddy-970523

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

janafsal avatar Mar 15 '22 17:03 janafsal

is there's an update ?

treeindark avatar Mar 15 '22 18:03 treeindark

how exactly?

lodekib avatar Mar 16 '22 08:03 lodekib

is there's an update ?

https://github.com/Hubertformin/electron-pos-printer/issues/60#issuecomment-1068271541

janafsal avatar Mar 16 '22 08:03 janafsal

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

how exactly?

https://github.com/Hubertformin/electron-pos-printer/issues/60#issuecomment-1068271541

janafsal avatar Mar 16 '22 08:03 janafsal

@Hubertformin @sidneip @jfamousket Please create a new release with the fix from https://github.com/Hubertformin/electron-pos-printer/pull/53

sara-jegorova avatar Sep 06 '22 07:09 sara-jegorova

go to node modules in your project =>electron-pos-printer=>dist(folder) => need to edit pos-printer.ts and compile again (or) edit pos-printer.js directly.in line no.91 (new BrowserWindow) Add webPreferences: { nodeIntegration: true, contextIsolation: false, }

then it will work :-) happy printing

janafsal avatar Sep 06 '22 08:09 janafsal

@janafsal Sorry but changing node_modules files is not the way to go. It won't work if the project gets built via github actions or from other people's pc's (they would also have to manually make the change).

sara-jegorova avatar Sep 06 '22 09:09 sara-jegorova

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

It is working!!

zawzawwin-dev avatar Sep 08 '22 03:09 zawzawwin-dev

Hello @everyone This issue has been fixed, it is not compatible with the latest version of electron

Hubertformin avatar Oct 27 '22 13:10 Hubertformin