- Run
npm install - Run
npm run build(fails)[info] Loaded plugin typedoc-plugin-markdown 15:54:21 [ERROR] [starlight-typedoc-plugin] node_modules/@astrojs/starlight/integrations/expressive-code/theming.ts:2:26 - error TS2307: Cannot find module './themes/night-owl-dark.jsonc?raw' or its corresponding type declarations.
To "fix":
- Comment out
starlightTypeDoc()plugin in astro.config.mjs - Run
npm run build(success) - Undo step 1 (add it back)
- Now
npm run buildwill succeed, as the.astro/types are synced