title: Vue3 vuex "TypeError: vuex__WEBPACK_IMPORTED_MODULE_1__.Store.commit is not a function"
body: <p>So, i'm trying to get static json data through axios and commit it to the &quot;projects&quot; state in vuex, but I'm getting the error &quot;Store.commit is not a function&quot;.</p>
  <p>Am I missing something?</p>
  <p>Do keep in mind that I am doing this in Vue3's vuex.</p>
  <pre><code>//store.js
  import axios from 'axios';
  import { createStore, Store } from 'vuex'
  
  
  export default createStore({
    state: {
      projects:[]
    },
    mutations: {
      SET_PROJECTS: (state, projects) =&gt; {
        state.projects = projects;
      }
    },
    actions: {
    },
    modules: {
    }
  });
  
  const getPrjectData = () =&gt; {
  
    axios
    .get('static json URL here')
    .then(response =&gt; {
      Store.commit('SET_PROJECTS', response.data.projects);
    })
    .catch(err =&gt; console.log(err));   
  }
  
  getPrjectData();
  
  </code></pre>