Comments (11)
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.
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.
Did you find the solution? I tried re-installing dependency as JuanFCVal said but didn't work
from thermal-printer-cordova-plugin.
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.
Did you manage to solve this?
I'm having the exact same issue.
from thermal-printer-cordova-plugin.
@JayRmz Unfortunately I couldn't. I tried as @JuanFCVal said but for me didn't work.
from thermal-printer-cordova-plugin.
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.
Did anyone manage to solve this issue, please ?
from thermal-printer-cordova-plugin.
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.
from thermal-printer-cordova-plugin.
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.
Workaround(Android Only) (LAN connectivity) for me is to use
Printer Plugin
With
Socket Plugin
from thermal-printer-cordova-plugin.
Related Issues (20)
- ionic project build failure HOT 2
- Error when using with another plugin
- Other Printer by Mumbyn
- Alignment and Encoding Issue HOT 1
- ❓ Is there a way of printing in Table Format?
- Added a logic that support a img size > 256 as well. also added some code to improve image quality
- Vue.js + Capacitor project import issue HOT 1
- Image Printing Not Centered Properly HOT 6
- Change Font size
- Drawer HOT 1
- App closes at printer check with Ionic 6 (Android 12 & API 31) HOT 1
- 'listPrinters', which lacks return-type annotation, implicitly has an 'any' return type. HOT 3
- Can i Use 80mm Paper? HOT 2
- Missing permission for android.permission.DISABLE_KEYGUARD HOT 17
- How To Trigger Open Cash Drawer ? HOT 3
- noting printing in zebra printer
- Change Charset Encoding HOT 8
- mmfeedpage and dotfeedpage not working
- Duplicate Class com.google.zxing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thermal-printer-cordova-plugin.