stereobooster / astro-og-canvas-example

reproduction of bug for https://github.com/delucis/astro-og-canvas/issues/54

Home Page:https://github.com/delucis/astro-og-canvas/issues/54

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starlight + astro-og-canvas

Built with Starlight

Issue

pnpm build
...
src/pages/og/[...route].ts:5:10 - warning ts(80007): 'await' has no effect on the type of this expression.

5   pages: await import.meta.glob("/src/content/docs/**/*.md", { eager: true }),
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
 building client (vite)
...
 generating static routes
...
__dirname is not defined in ES module scope
  Stack trace:
    at file:///astro-og-canvas-example/dist/chunks/prerender_UQoVfpFk.mjs:8106:43
 ELIFECYCLE  Command failed with exit code 1.

About

reproduction of bug for https://github.com/delucis/astro-og-canvas/issues/54

https://github.com/delucis/astro-og-canvas/issues/54


Languages

Language:MDX 46.6%Language:TypeScript 28.0%Language:JavaScript 25.4%