Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue.js + Capacitor project import issue #28

Open
volkanelci1 opened this issue Oct 6, 2022 · 1 comment
Open

Vue.js + Capacitor project import issue #28

volkanelci1 opened this issue Oct 6, 2022 · 1 comment

Comments

@volkanelci1
Copy link

volkanelci1 commented Oct 6, 2022

When I try to import it to my Vue js application I get this error. Is there an extra step that I am missing?

I am importing it like this
import { ThermalPrinterPlugin } from 'thermal-printer-cordova-plugin/src';

The error I get

`This dependency was not found:

  • thermal-printer-cordova-plugin/src in ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/views/Dashboard.vue?vue&type=script&lang=js

To install it, you can run: npm install --save thermal-printer-cordova-plugin/src`

@opuu
Copy link

opuu commented Feb 13, 2023

You can import it directly like this:

import ThermalPrinterPlugin from "thermal-printer-cordova-plugin/www/thermal-printer.js";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants