Skip to content

[vuex] already installed. Vue.use(Vuex) should be called only once.  #731

Closed
tghelere/vue-tetris
#2
@f1729

Description

@f1729

Version

2.0.0

Reproduction link

https://jsfiddle.net/15ww4vog/8/

Steps to reproduce

  1. Load jsfiddle page
  2. Vue init method is executed.(With CDN, Just VUE and Jquery)
  3. Vue init method makes a Ajax call to "https://api.myjson.com/bins/13xym3". and responds a HTML, JS injected to #dinamic-container div.
  4. HTML, JS injected also includes a Vue instance.
  5. creating conflicts "[vuex] already installed. Vue.use(Vuex) should be called only once."

What is expected?

  1. Load page, instantiate VUE.
  2. When a page is injected and includes a VUE instance. load with no conflicts.

What is actually happening?

  1. Load page, instantiate VUE.
  2. When page is injected and includes a VUE instance. a conflict is raised and show the "[vuex] already installed. Vue.use(Vuex) should be called only once." console error.

My parent view is loading Vue instance.
and I'm injecting a Child view that also contains its own Vue instance.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions