m0dch3n / vue-cli-plugin-cordova

Vue Cli 3 Cordova Plugin
MIT License
417 stars 63 forks source link

Issue when adding plugin #129

Open vuthainam opened 3 years ago

vuthainam commented 3 years ago

Has anyone of you got an issue like this?

vncsmyrnk commented 3 years ago

Hey!

I just had the same problem here. I solved by adding the following on the vue.config.js file:

pluginOptions: {
  cordovaPath: 'src-cordova'
}

Example file with addition:

module.exports = {
  publicPath: '',
  pluginOptions: {
    cordovaPath: 'src-cordova'
  }
}

I got this by reading this topic: https://stackoverflow.com/questions/61537600/default-install-of-vue-cli-plugin-cordova-will-not-run-on-ios-simulator