Vue.js use method of undefined

Currently I am working with Vue CLI version ^3.0.0 and Vuex ^3.6.0, but when I want to use Vue.use(Vuex).
It says in the browser cannot read use of undefined.



import App from './App.vue'
import store from './store'

new Vue({
    render: h => h(App)


import Vue from 'vue';
import Vuex from 'Vuex';


export default Vuex.Store({
    state: {
        count: 0
    mutations: {
        increment(state) {

enter image description here

Error received:

Uncaught TypeError: Cannot read property ‘use’ of undefined

Do you guys have any idea?

Thanks in advance.

53 thoughts on “Vue.js use method of undefined”

  1. i need a loan quick bad credit, i need a loan urgently. i need loan 2018 need loan now need a loan fast i need a loan with no credit check, 60 day cash advance loans, cash advance online, cash advances, today advance loans near me. Money management assets and liabilities business, designed for companies.


Leave a Comment