Vue-material: Cannot read property 'installed' of undefined(…)

Created on 14 Dec 2016  Â·  7Comments  Â·  Source: vuematerial/vue-material

I'm using v0.4.1 with vue v2.1.6

It's causing this error:
vue.js?3de6:3357 Uncaught TypeError: Cannot read property 'installed' of undefined(…) which appears to happening here:

function initUse (Vue) { Vue.use = function (plugin) { /* istanbul ignore if */ if (plugin.installed) { return }

That error is in chrome, but firefox it is similiar it says TypeError: plugin is undefined
and I believe is orginating in my main.js with Vue.use(VueMaterial.mdCore)

question

Most helpful comment

@marcosmoura just a reminder about updating the docs. That's how I ended up here :)

All 7 comments

Actually, I figured out it out, the syntax changed from

Vue.use(VueMaterial.mdCore) to
Vue.use(VueMaterial.MdCore)

Yep. I forgot to mention. I will update the documentation. Sorry about that! Thanks!

@marcosmoura just a reminder about updating the docs. That's how I ended up here :)

Update the documentation. pls

Update documentation

I made a pull request. @marcosmoura

Please how do I install:
import { MdDatePicker } from "vue-material/dist/components";

Was this page helpful?
0 / 5 - 0 ratings