Closed robinzimmermann closed 11 months ago
(BTW, thank you for an excellent starter project template!)
I have temporarily worked around the issue:
// register vue composition api globally
import { ViteSSG } from "vite-ssg";
import generatedRoutes from "virtual:generated-pages";
import { setupLayouts } from "virtual:generated-layouts";
import App from "./App.vue";
import "uno.css";
import "@sfxcode/formkit-primevue/dist/sass/formkit-primevue.scss";
const modules = import.meta.glob("./modules/*.ts", { eager: true });
const routes = setupLayouts(generatedRoutes);
export const createApp = ViteSSG(App, { routes }, (ctx) => {
// install all modules under `modules/`
Object.values(modules).map((i: any) => i.install?.(ctx));
});
const modules = import.meta.glob("./modules/*.ts", { eager: true });
,Object.values(modules).map((i: any) => i.install?.(ctx));
But I have no idea what the correct solution should be.
Good morning Robin,
try to fix with latest release. Please give it a try to see if it solves your problem.
Greetings, Tom
I believe it's working, thank you for the quick response!
(I'm not sure if I should close the ticket or let someone else do it...)
In
main.ts
, Visual Code says thatglobEager
is deprecated:(Ignore the red squiggle underneath the
i
, but it is annoying that this part of the code is not typed, grr!)At runtime, the app doesn't start and the following error is in the Javascript console:
The app fails to load. I started it using
pnpm run dev
from the command line.