M
M
Maxim2021-12-21 19:58:38
Vue.js
Maxim, 2021-12-21 19:58:38

Why doesn't the "use" property exist in type "typeof import?

import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    count: 0
  },
  mutations: {
    increment (state) {
      state.count++
    }
  }
})

Why does it give an error: Property "use" does not exist in type "typeof import("D:/\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\
u043D\u0438 \u0435/Vue/asd/node_modules/vue/dist/vue")".

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question