-
Notifications
You must be signed in to change notification settings - Fork 2
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
Does not work with Astro v3.3.3 and Starlight v0.11.1 #26
Comments
Could you please share a reproduction? Not sure why this might be. |
Sure! This is an example repo with the docs being inside the The |
I think this may be Starlight-related somehow. Here’s a basic test which shows auto-imports working in MDX with latest Astro: https://stackblitz.com/edit/github-t6bbob?file=src%2Fpages%2Findex.mdx Downgrading Starlight to v0.10 also seems to make auto-imports work again, so will need to investigate what changed recently that could break this. |
This comment was marked as outdated.
This comment was marked as outdated.
Is there some kind of set-up step needed? I get errors about importing As a quick fix for the original issue: moving
|
Sorry, my bad. This has a pretty complex setup process. I'll try to prepare a minimal reproducible example.
Yes, that worked perfectly. I have no idea why this order would've changed. I couldn't find any reference to import-order in the Astro changelogs. If more people experience this, it might be worth documenting the new order somewhere. |
I think this was caused by a Starlight change — specifically withastro/starlight@372ec96 (withastro/starlight#796) — but don’t understand yet why. In regular Astro projects, the guidance in the |
Feel free to close this issue if you think there's nothing actionable here. And thanks for the solution, I wasn't able to update and use the newest features in Starlight till this was resolved. |
Thanks. Yes, will close this as the issue is not something we can solve in this repo. Will keep investigating to understand why it's an issue with Starlight. |
With this plugin configured on Astro v2.7.0 and Starlight v.5.6, everything worked. When I updated Astro and Starlight, without any config changes, the plugin stopped working.
The text was updated successfully, but these errors were encountered: