23:44:27 ├─ /wiki/players/index.html"/x" cannot be parsed as a URL.
Stack trace:
at URL (unknown)
at generateRouteData (/Users/eveeifyeve/github/TeaClientMC/Website/dist/chunks/index_DlWNCQ0P.mjs:2469:11)
at useRouteData (/Users/eveeifyeve/github/TeaClientMC/Website/dist/chunks/index_DlWNCQ0P.mjs:2448:29)
at processTicksAndRejections (native:7:39)
error: script "build" exited with code 1
#Parsing as a url starlight social issue:
1 messages · Page 1 of 1 (latest)
Hi @steel geyser. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
It looks like one of your Starlight social links is being parsed as a URL but contains an invalid value like /wiki/players/index.html"/x (note the stray quote and trailing /x). Starlight’s social config requires each href to be a valid URL string (typically starting with http/https). Fix or remove the malformed entry in the social array of your Starlight integration config. For example:
// astro.config.mjs
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
export default defineConfig({
integrations: [
starlight({
// ...
social: [
{ icon: 'github', label: 'GitHub', href: '<https://github.com/withastro'> },
// Ensure every href is a valid URL, no stray quotes or fragments like '"/x'
],
}),
],
});
Starlight’s social option format is documented here (ensure valid href URLs) ("social"; "Social links"). If issues persist, check Starlight troubleshooting resources ("Troubleshooting Starlight").
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@steel geyser Kapa.ai is still learning and improving, please let me know how I did by reacting below.
@fluid pewter href: string
Let me check the knowledge base for you again. One moment! :books:
In Starlight’s components, href is a required string URL for link targets:
- LinkButton: href (required) — string URL the button points to (<LinkButton> Props).
- LinkCard: href (required) — string URL the card links to (<LinkCard> Props).