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

[Vuetify] Multiple instances of Vue detected #1138

Closed
begueradj opened this issue Feb 8, 2019 · 4 comments
Closed

[Vuetify] Multiple instances of Vue detected #1138

begueradj opened this issue Feb 8, 2019 · 4 comments

Comments

@begueradj
Copy link

Version

1.0.0-beta.29

Reproduction link

https://github.com/begueradj/bugs/tree/master/nuxtVuetifyJest

Steps to reproduce

const localVue = createLocalVue()
localVue.use(Vuetify)

What is expected?

I expect my test to pass without any error or warning messages.

What is actually happening?

The test passes but I receive this nasty red message:

^[[999D  console.error node_modules/vuetify/dist/vuetify.js:25038                                                                                
    [Vuetify] Multiple instances of Vue detected                                                                                                 
    See https://github.com/vuetifyjs/vuetify/issues/4068                                                                                         
                                                                                                                                                 
    If you're seeing "$attrs is readonly", it's caused by this 

  • The documentation clearly recommends to use localVue.use(Vuetify) so please do not suggest me to Vue.use(Vuetify) unless if you are a superman with valid reasons able to convince me.

  • I am using Jest Nuxt Vuetify. You can try my github repository provided in the above link.
    Billal Begueradj.

@eddyerburgh
Copy link
Member

Please see this comment in Vuetify—vuetifyjs/vuetify#4068 (comment)

@begueradj
Copy link
Author

I tried what that comments suggests:

Vue.use(Vuetify)
const localVue = createLocalVue()
localVue.use(Vuetify)

Still getting the exact same error.
Thank you @eddyerburgh

@amiefx
Copy link

amiefx commented Jan 30, 2020

I had same problem.
it was due Capitalization of Vue
I changed "import Vue from 'Vue';" with "import Vue from 'vue';"
it works now

@bennysalewski
Copy link

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