Issues in thermal printing



I have built my vueJS application using electron. Everything else works fine, but I am getting issue while printing the content to a thermal printer. Certain lines are missing in the print. Second time when I print the same content, print comes out correctly. In the dev environment I never got that problem. So I am guessing issue is after building in electron.

If anyone has gone through this, please let me know how did you solve it. Any help is appreciated.