Open IvRRimum opened 7 years ago
I also have this problem....
What i did is just use tiny-cookie plugin directly. Without this wrapper. Works as a charm!
yep, it's broken, I think in the build (the code in there in the source to do the right thing, and properly export)
Try adding this code before your Vue code and after including tiny-cookie and Vue core's JS :
Vue.cookie = Cookie;
Vue.prototype.$cookie = Cookie;
import Vue from 'vue';
import VueCookie from 'vue-cookie';
Vue.use(VueCookie);
Hey,
When i copy paste the build/vue-cookie.js to my own project and include below the vue.js include and try to call this.$cookie or Vue.cookie i get: Undefined get for undefined.
Does this work without npm?