title: Uncaught TypeError: Vue is not a constructor - Vuex with Vue 3
body: <p>I'm trying to use Vuex with Vue 3. Here is my code in main.js:</p>
  <pre><code>import { createApp } from 'vue';
  import App from './App.vue';
  import Vuex from 'vuex';
  
  const app = createApp(App);
  app.use(Vuex);
  
  const store = new Vuex.Store({
      state: {
          counter: 0
      }
  });
  
  app.store(store);
  app.mount('#app');
  </code></pre>
  <p>When trying this, I get the following error:</p>
  <pre><code>Uncaught TypeError: Vue is not a constructor
  </code></pre>
  <p>I have tried using the syntax recommended in the official Vuex docs but this does not work either. Does anyone know how to fix this?</p>