-
Notifications
You must be signed in to change notification settings - Fork 17
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
Astro support? #6
Comments
This is unexpected but probably has something to do with how macaron does file resolution. I'll look into why it is happening, but this should be an easy fix |
Hey, I'm not getting this error when trying out Astro with macaron. Can you try this again, and if it's still there it would be great if you could make a reproduction of this. |
I also ran into a bunch of problems with Astro. The errors at dev time and build time are different, but they are all emitted by [vite:build-import-analysis]. At dev time, the error is:
At build time, the error is
The behavior is so weird. Let me try to make a reproduction. |
This time it shows me this:
Now the problem should be obvious, that the macaron vite plugin gives vite the wrong file extension after transforming it I guess. |
Oh Astro's solid integration is not acting as a vite plugin, but it's using astro's renderer api. The order of the transformers may be unpredictable and the error just occured. |
I've been looking into fixing this, but I've been having a hard time debugging it. A macaron integration (astros own implementation of "plugins") could be made |
Posted a bounty for this |
Thanks @broccolai for creating the bounty! Glad to see people support development of macaron. Unfortunately haven't been getting time to look into this issue, but will try to see if i can find a fix this week. |
The error message you've provided is related to the Vite build system. It appears that it's unable to find a file called 'astro:scripts/before-hydration.js'. There are a few steps you can take to try and resolve the issue: Check that the file 'astro:scripts/before-hydration.js' exists in your project and is located at the path specified. If it's not in the expected location, then move it there. Check that the file is not being deleted during the build process. Check your Try clearing your cache by running Restart your development server and try the build again. |
I'm trying to run macaron inside Astro project within Solid component. So I placed it inside Astro's vite config, plugins array.
but getting an error:
The text was updated successfully, but these errors were encountered: