-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Issue with astro add
and @astrojs/mdx
#5459
Comments
It's working fine for me on macos. It seems a bit related to #5431 which should be fixed in the latest Astro version. We'd need a reproduction to further investigate this as I think this isn't OS specific, but maybe an existing import in your astro config is messing with it. |
Sure thing, I'm also adding the same issue from a discord forum post here. From trying to narrow it down, the issue may not be with astro... the |
I can reproduce this too. Some logging showed that it came from I made a fix in Vite awhile ago at vitejs/vite#10593 but seems like the bug still happens. (That also reminds me to remove the Vite hack) Anyways I think this can still be fixed by refactoring this part to only find the config file path, and not load the config file unnecessarily. Currently it tries to load and fail with the error. |
Any updates on it/anything I can do? I encountered this same issue in another project and it seems like I cannot work without it getting resolved. |
create-astro
astro add
and @astrojs/mdx
What version of
astro
are you using?1.6.10
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Windows [WSL]
Describe the Bug
The addition of Preact leads to an error:
Not sure how to replicate this in stackblitz.
Link to Minimal Reproducible Example
Participation
The text was updated successfully, but these errors were encountered: