Vue-material: Failed trying to import individual components only

Created on 21 May 2017  路  6Comments  路  Source: vuematerial/vue-material

Steps to reproduce

Try to register only individual modules from vue-material, like;

import Vue from 'vue'
import VueMaterial from 'vue-material'
Vue.use(VueMaterial.mdCore)

Which browser?

Latest vuejs, Vue-material, Windows 10, Chrome

What is expected?

Component should be registered with vuejs

What is actually happening?

Uncaught TypeError: Cannot read property 'installed' of undefined
bug

Most helpful comment

Thanks! That works. Maybe consider updating the docs?..

All 6 comments

That looks suspicious... We'll investigate.
Thank you @mubaidr ! If you have any clues, let us know.

This code piece looks culprit to me, can you confirm pls? https://github.com/vuematerial/vue-material/blob/master/src/core/index.js#L10

I am having the same issue. Any update on that? I do not want to import everything.

@cars10 Developer is focusing on major version (i think rewrite).

Vue.use(VueMaterial.MdCore)
Vue.use(VueMaterial.MdSpinner)

uppercasing the first letter

Thanks! That works. Maybe consider updating the docs?..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bryanspearman picture bryanspearman  路  3Comments

tridcatij picture tridcatij  路  3Comments

andreujuanc picture andreujuanc  路  3Comments

Feduch picture Feduch  路  3Comments

bjarnik picture bjarnik  路  3Comments