Files
corrosion-admin-panel/frontend/src/main.ts
Vantz Stockwell 854f56a178
All checks were successful
Test Asgard Runner / test (push) Successful in 3s
fix: Register VueFinderPlugin — prevents Object.keys crash on null store
VueFinder requires app.use(VueFinderPlugin) to provide its internal
context (i18n, features, config stores). Without plugin registration,
the store returned null during setup, causing Object.keys to throw
TypeError on undefined.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 22:20:00 -05:00

21 lines
468 B
TypeScript

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { VueFinderPlugin } from 'vuefinder'
import App from './App.vue'
import router from './router'
import './style.css'
import 'vuefinder/dist/vuefinder.css'
const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(VueFinderPlugin)
app.mount('#app')