-
-
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
Astro with Tailwind integration failed to start on StackBlitz.com #13249
Comments
I can reproduce this using the default template (https://stackblitz.com/github/withastro/astro/tree/latest/examples/with-tailwindcss?file=astro.config.mjs&on=stackblitz) |
@florian-lefebvre Yes, and as I mentioned above, I noticed that simply importing @tailwindcss/vite (without using it yet) results in an error.
|
Can you try to import the vite plugin in a plain vite app on stackblitz? The issue may not be with Astro directly |
I tested with a plain Vite app and the Tailwind plugin on StackBliz: https://stackblitz.com/edit/vitejs-vite-j87xt5ex?file=vite.config.ts . The Vite app also failed to start on StackBliz (the same code runs fine locally), but it show an explicit error message. |
Alright thanks for confirming! So this issue will be about surfacing the related error better then |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
It only fails on stackblitz.com
Describe the Bug
The project runs fine on my machine, but on StackBlitz, as soon as I imported @tailwindcss/vite into astro.config.mjs, the project refused to start. It failed silently—no errors, no warnings. Even
astro info
returns nothing.What's the expected result?
The project should start on StackBlitz, or at least print an error message if it fails.
Link to Minimal Reproducible Example
https://stackblitz.com/~/github.com/ngtankhoa/withastro-astro-banrd5uv
Participation
The text was updated successfully, but these errors were encountered: