-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Error starting new project - @layer base
is used but no matching @tailwind base
directive is present.
#1731
Comments
We figured it out on Discord: Downgrading Vite to 4.3.9 fixes this issue.If it doesn't, make sure you're package.json is actually set to If it still doesn't work: <script lang='ts'>
// Most of your app wide CSS should be put in this file
import '../app.postcss';
</script>
<slot /> app.postcss: @import '@skeletonlabs/skeleton/themes/theme-skeleton.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;
@import '@skeletonlabs/skeleton/dist/styles/partials/core.css';
@import '@skeletonlabs/skeleton/dist/styles/partials/typography-next.css';
@import '@skeletonlabs/skeleton/dist/styles/partials/elements.css';
@import '@skeletonlabs/skeleton/dist/styles/partials/variants.css';
/*place global styles here */
html,
body {
@apply h-full;
} Basically, recreating |
@Sarenor thank you so much for the quick response! I can also confirm I am getting the same error in versions 1.8.0 and 1.7.0 |
@JWeis Better fix: Downgrade Vite to 4.3.9. |
@Sarenor, I had Vite 4.3.6 installed as the default. I upgraded to 4.4.0, and it seems to work inline with the current documentation. |
Huh. Alright, re-adding the fix documentation then. Although downgrading it did fix it for me without having to build the |
downgrading fixed it for me as well! |
Relevant Issue raised with vite: vitejs/vite#13732 |
@Sarenor it is working better for me with vite 4.3.9. For some reason, 4.4.0 was working on my test project and then I tried it on a fresh project and I was getting the original error. I just switch to 4.3.9 and it is working as I would expect. Thank you! |
Just so everyone is aware - we believe the issue to be on Vite's side per the issue @Sarenor raised above. We're monitoring to see how they address. In the meantime we do advise sticking with Vite v4.3.9 for now. Keep an eye on this post and we'll update when we know more. |
Vite's got a PR open for it already. Seems like we're on the way to a resolution there :) |
Fixed with |
This works for me. Thank you for all your work! |
Of course. Telling other people that it's their problem is my favorite part of work! ;) |
Current Behavior
Upon running the dev server, I receive this error:
The text was updated successfully, but these errors were encountered: