-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
🐛 BUG: Error Failed to load module for SSR #2781
Comments
Getting same issue with minimal and every other template based installation such as svelte. |
Thanks everyone. For those who are seeing this problem, is it happening sporadically or does it always occur? |
I installed Astro a few days ago it was working fine. But since today I am getting the error. |
@matthewp It's happening all the time. |
Here's the diff between the versions where the regression was noticed: https://github.com/withastro/astro/compare/astro@0.24.0-next.0...astro%400.24.0-next.1 |
@manishshahi1 can you share your OS version and Node version? |
@manishshahi1 Are you using pnpm by chance? |
I'm able to recreate this now, it's related to the fact that there is a space in your filepath. I think it's probably this bug: vitejs/vite-plugin-vue#218 |
This error can also occur if the filepath for an import does not match what it should be. |
Yes! thanks! I forgot to add |
Wow.. I didn't even noticed that -import { AstroComponent } from "../path/to/AstroComponent";
+import AstroComponent from "../path/to/AstroComponent.astro"; Solved for me, thanks! |
What version of
astro
are you using?0.24.0
What package manager are you using?
pnpm
What operating system are you using?
Ubuntu
Describe the Bug
After upgrading to
astro@0.24.0-next.1
, I'm gettingFailed to load module for SSR
error. I am able to reproduce the issue even in theminimal
starter. All the versions are working fine tillastro@0.24.0-next.0
. So, some code changes between the two versions may have caused the issue.astro build
astro dev
But the main problem only a few users are experiencing this issue. Till now, three users have reported this issue. One of them is using Ubuntu, the other one Windows, and the other one Mac.
Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal
The text was updated successfully, but these errors were encountered: