HiDeoo / starlight-blog

Starlight plugin to add a blog to your documentation
https://starlight-blog-docs.vercel.app
MIT License
126 stars 17 forks source link

Updated dependencies, now unable to build project due to rss.xml #69

Closed VisualEhrmanntraut closed 2 months ago

VisualEhrmanntraut commented 2 months ago

Describe the bug

running pnpm run build gives

20:34:49 [ERROR] [vite] x Build failed in 3.74s
[vite:build-import-analysis] [plugin vite:build-import-analysis] pages/_prefix_/rss.xml.astro.mjs (1:1): Parse error @:1:1

1  |  import { o as objectType, a as stringType, u as unionType, n as numberType, d as dateType, b as arrayType, r as recordType, f as functionType, p as promiseType, c as anyType, e as preprocessType, g as booleanType } from '../../chunks/user-config_CU5WHklU.mjs';
   |   ^
2  |  import { y as yellow } from '../../chunks/astro/server_gqeVL1Yw.mjs';
3  |  import { c as config, g as getBlogEntries, a as context, b as getPathWithBase } from '../../chunks/content_D1pq9u3f.mjs';

  Stack trace:
    at parse$f (file:///Users/visual/Developer/ProjectSources/ChefKiss/ChefKissInc.github.io/node_modules/.pnpm/vite@5.3.4_@types+node@20.14.11/node_modules/vite/dist/node/chunks/dep-D8YhmIY-.js:20510:585)
    at file:///Users/visual/Developer/ProjectSources/ChefKiss/ChefKissInc.github.io/node_modules/.pnpm/rollup@4.19.0/node_modules/rollup/dist/es/shared/node-entry.js:19808:40
 ELIFECYCLE  Command failed with exit code 1.

To Reproduce

  1. pnpm up --latest
  2. pnpm run build

Expected behavior

site builds successfully

How often does this bug happen?

Every time

System Info

Additional Context

Screenshot 2024-07-20 at 20 46 30
sanabel-al-firdaws commented 2 months ago

same with npm and bun MAN I SPENT THEWHOLE DAY TRYING TO FIX THIS 🤣

HiDeoo commented 2 months ago

Thanks for the report :raised_hands:

The problem turns out to be an upstream issue in Rollup. I'll have to confirm but I should be able to workaround the bug and release a patch for this problem.