Spaces:
Running
Running
| import { createApp } from "vue"; | |
| import { createPinia } from "pinia"; | |
| import App from "./App.vue"; | |
| import router from "./router"; | |
| import { initializeParsers } from "@inc/trigo/parserInit"; | |
| const app = createApp(App); | |
| const pinia = createPinia(); | |
| app.use(pinia); | |
| app.use(router); | |
| // Initialize parsers before mounting (required for TGN functionality) | |
| initializeParsers() | |
| .then(() => { | |
| app.mount("#app"); | |
| }) | |
| .catch((error) => { | |
| console.error("Failed to initialize parsers:", error); | |
| // Still mount app even if parser initialization fails | |
| // (parser will throw error when TGN features are used) | |
| app.mount("#app"); | |
| }); | |