Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

How to configure Ionic file opener for Vue 3?

$
0
0

my package.json:
“dependencies”: {

"@capacitor-community/http": "^1.3.0",

"@capacitor/android": "3.2.5",

"@capacitor/app": "1.0.5",

"@capacitor/core": "3.2.5",

"@capacitor/filesystem": "^1.0.6",

"@capacitor/haptics": "1.1.2",

"@capacitor/keyboard": "1.1.2",

"@capacitor/status-bar": "1.0.5",

"@capacitor/storage": "^1.2.2",

"@ionic-native/file-opener": "^5.36.0",

"@ionic/storage": "^3.0.6",

"@ionic/vue": "^5.4.0",

"@ionic/vue-router": "^5.4.0",

"axios": "^0.23.0",

"cordova-plugin-file-opener2": "^3.0.5",

"core-js": "^2.5.7",

"swiper": "^6.8.4",

"vue": "^3.2.1",

"vue-flickity": "^1.2.1",

"vue-router": "^4.0.0-0",

"vuex": "^4.0.2"

},

I tried both capacitor/filesystem plugin and ionic/file-opener but I was not able to configure either of those in Vue3

There is no documentation for using File opener in Vue. I am using Vue 3 and I already tried importing FileOpener in my main.js file like this:

import { FileOpener } from ‘@ionic-native/file-opener’;

const app = createApp(App)
.use(store)
.use(IonicVue)
.use(router)
.use(FileOpener)

I also tried importing FileOpener inside the component which I will be using it but still I cant make it workPreformatted text

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>