nuxt-vue-material
nuxt-vue-material copied to clipboard
MdSelect error, when imported separately
i ve try to import only MdSelect component and avoiding get the whole library, like de docs said. and when I put this in the modules array of nuxt.config file:
['nuxt-vue-material', {
theme: 'default-dark',
components: ['MdSelect',]
}],
and this in my template:
<md-field>
<label for="movies">Movies</label>
<md-select v-model="selectedMovies" name="movies" id="movies" multiple>
<md-option value="fight-club">Fight Club</md-option>
<md-option value="godfather">Godfather</md-option>
<md-option value="godfather-ii">Godfather II</md-option>
<md-option value="godfather-iii">Godfather III</md-option>
<md-option value="godfellas">Godfellas</md-option>
<md-option value="pulp-fiction">Pulp Fiction</md-option>
<md-option value="scarface">Scarface</md-option>
</md-select>
</md-field>
when the app finally compiles, i get this error in my browser
Cannot read property 'install' of undefined
The errors gone obviously when i pass the components array options empty, but this affects my performance Also ive try rendering other compoenents like buttons, lists, and its all ok. only the select component gives me errors
thanks in advance