Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core][ssr] Vue.use is not a function #820

Closed
kodekoder opened this issue Jun 12, 2017 · 5 comments
Closed

[core][ssr] Vue.use is not a function #820

kodekoder opened this issue Jun 12, 2017 · 5 comments

Comments

@kodekoder
Copy link

Does it work with SSR? I can't set it with Nuxt.

  1. Create plugin
var Vue = require('vue')
var VueMaterial = require('vue-material')

Vue.use(VueMaterial)
  1. In nuxt.config
  plugins: [
    {src: '~plugins/vm', ssr: false}
  ]
  1. Add CSS
  2. <md-button class="md-primary">Primary</md-button> in markup
  3. Got error
[nuxt.js] Cannot load components TypeError: Vue.use is not a function
@zapping
Copy link
Contributor

zapping commented Jun 13, 2017

SSR is being tracked in #243

@kodekoder
Copy link
Author

Not sure is this is SSR related.

@pablohpsilva pablohpsilva changed the title Vue.use is not a function [core][ssr] Vue.use is not a function Aug 9, 2017
@hackuun
Copy link

hackuun commented Aug 14, 2017

So it doesn't work with Nuxt?

@pablohpsilva
Copy link

@iamdubx The error doesn't seems to be related with SSR, like @jerakode said.
We are working on vue-material 1.0 and we have a whole sprint just to make sure it works with SSR though.

@hackuun
Copy link

hackuun commented Aug 16, 2017

@pablohpsilva this is great news. 1.0 sounds very exciting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants