I'm getting started with Vue 3 and Vite. How do I reference the Vue instance? I'm used to doing...
import Vue from 'vue'
but if I do this in my Vue3/Vite project, there's no default export in the vue module, so...
Uncaught SyntaxError: The requested module '/node_modules/.vite/vue.js?v=d734dbd3' does not provide an export named 'default'
I'm clearly having the same problem as
CodePudding user response:
Yes, there is no longer a global instance of Vue
available in Vue3:
https://v3.vuejs.org/guide/migration/global-api.html#global-api
You have to add these things to the app you created with createApp