Vue resources - plugin.apply is not a function Vue resources - plugin.apply is not a function vue.js vue.js

Vue resources - plugin.apply is not a function


the vue-resource have some issues and it has stopped updated and maintained. its author has written axios to replace vue-resource.Therefore, I recommend you use axios.

You need to install axios by npm or yarn and replace var VueResource = require('vue-resource');Vue.use(VueResource); with var axios = require('axios'); Vue.prototype.$http = axios

reference:axios