Git Product home page Git Product logo

Comments (11)

JuanFCVal avatar JuanFCVal commented on July 17, 2024 1

In package.json

{
devDependencies:{
...
    "thermal-printer-cordova-plugin": "^1.0.6",.
},
"cordova": {
...
      "thermal-printer-cordova-plugin": {}
}
}

Then in the class you are going to use it.

...
import { PrinterToUse, ThermalPrinterPlugin } from 'thermal-printer-cordova-plugin/src';
declare let ThermalPrinter: ThermalPrinterPlugin;

from thermal-printer-cordova-plugin.

JuanFCVal avatar JuanFCVal commented on July 17, 2024

Did u find the solution?
Have u try using let in declare let ThermalPrinter: ThermalPrinterPlugin;
Try re-installing dependency in my case it was the solution.

from thermal-printer-cordova-plugin.

joseserrano15 avatar joseserrano15 commented on July 17, 2024

Did you find the solution? I tried re-installing dependency as JuanFCVal said but didn't work

from thermal-printer-cordova-plugin.

a-satyateja avatar a-satyateja commented on July 17, 2024

No that wasn't working for me @joseserrano15.
@JuanFCVal Can you please share any code snippets to shed more light on this? TIA.

from thermal-printer-cordova-plugin.

JayRmz avatar JayRmz commented on July 17, 2024

Did you manage to solve this?
I'm having the exact same issue.

from thermal-printer-cordova-plugin.

joseserrano15 avatar joseserrano15 commented on July 17, 2024

@JayRmz Unfortunately I couldn't. I tried as @JuanFCVal said but for me didn't work.

from thermal-printer-cordova-plugin.

JuanFCVal avatar JuanFCVal commented on July 17, 2024

This is working for me,
@JayRmz @joseserrano15 please look at this [Repo] (https://github.com/Ans0n-Ti0/esc-pos-encoder-ionic-demo) working on Ionic 6, it's another approach to achieve printing.

from thermal-printer-cordova-plugin.

ayubUOL avatar ayubUOL commented on July 17, 2024

Did anyone manage to solve this issue, please ?

from thermal-printer-cordova-plugin.

iborschca avatar iborschca commented on July 17, 2024

I am getting this error because webpack didn't import the module because in my case I am developing for iOS but this module doesn't have iOS support - only Android. Going to switch to another module doesn't know which one yet.
image

from thermal-printer-cordova-plugin.

piotrdanilowicz avatar piotrdanilowicz commented on July 17, 2024

Has anyone managed to solve this problem?

The only workaround I've found so far is to use:

https://github.com/Ans0n-Ti0/EscPosEncoderi
+
https://ionicframework.com/docs/v5/native/bluetooth-serial

from thermal-printer-cordova-plugin.

ayubUOL avatar ayubUOL commented on July 17, 2024

Workaround(Android Only) (LAN connectivity) for me is to use
Printer Plugin
With
Socket Plugin

from thermal-printer-cordova-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.