Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image not displayed in new project #421

Closed
1 task done
druettiger opened this issue Jul 27, 2023 · 2 comments
Closed
1 task done

Image not displayed in new project #421

druettiger opened this issue Jul 27, 2023 · 2 comments

Comments

@druettiger
Copy link

What version of starlight are you using?

0.5.6

What version of astro are you using?

2.9.3

What package manager are you using?

npm

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the Bug

Issue:

  1. I created a new project with npm create astro@latest -- --template starlight.
  2. The houston.webp image on the first page is not displayed (HTTP 404).

Possible Solution:

  • Adding experimental: { assets: true } to astro.config.mjs works for me.

I am surprised that it is not included in the Starlight documentation's docs/astro.config.mjs though.

Link to Minimal Reproducible Example

No response

Participation

  • I am willing to submit a pull request for this issue.
@HiDeoo
Copy link
Member

HiDeoo commented Jul 27, 2023

  • Adding experimental: { assets: true } to astro.config.mjs works for me.

The Starlight integration is actually setting this value but it's not working properly at the moment and can indeed be workaround with your suggestion.

This should be fixed by withastro/astro#7829

@delucis
Copy link
Member

delucis commented Jul 27, 2023

Yes this is caused by a bug in Astro v2.9.2 and will be fixed when that PR is released in v2.9.4 — will be released when this PR is merged: withastro/astro#7813

Thanks for helping out @HiDeoo. Will close this issue as we can't fix it on Starlight's end.

@delucis delucis closed this as completed Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants