When I created a new application using Vue CLI (Vue3, Babel, Typescript), I encountered an issue where the 'config' object on the main app object returned from the createApp function was not accessible.
In VS Code, I could see the Typescript 'App' type and the associated config: AppConfig type by drilling down into the code.
However, attempting to access 'config' led to an error being highlighted:
Property 'config' does not exist on type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>'.ts(2339)
This issue occurred in the 'main.ts' file:
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
const app = createApp(App).use(store).use(router).mount('#app')
app.config <-- this action cannot be performed