react-native-esc-pos-printer icon indicating copy to clipboard operation
react-native-esc-pos-printer copied to clipboard

Error: ERR_PARAM at example print

Open jankoJelic opened this issue 2 years ago • 3 comments

Hello, I have installed your library and when I run code from the example:

const printing = new EscPosPrinter.printing();

const status = await printing
        .initialize()
        .align('center')
        .line('DUDE!')
        .newline()
        .cut();
        
      console.log(JSON.stringify(status));

log output: {"_buffer":[[4,[1]],[0,["DUDE!"]],[1,[1]],[1,[1]],[7,[]]],"_state":{"bold":false,"underline":false,"smooth":false},"_currentFontWidth":1}

when I append .send() to the end I get this: Possible Unhandled Promise Rejection (id: 3): Error: ERR_PARAM Error: ERR_PARAM

Any tips on this one? Have you encountered this problem?

jankoJelic avatar Nov 26 '22 16:11 jankoJelic

same issue

beinmedia-tech avatar Oct 21 '23 15:10 beinmedia-tech

Any update on this?

tousif-p99soft avatar Oct 31 '23 06:10 tousif-p99soft

https://github.com/tr3v3r/react-native-esc-pos-printer/issues/104#issuecomment-1824901357 Solution here but for iOS for now only.

marab2 avatar Nov 23 '23 21:11 marab2

Please check version 4.0.0

tr3v3r avatar Jul 25 '24 09:07 tr3v3r