Closed fehnomenal closed 2 years ago
From the bug template:
A link to a repository, or a fork of https://node.new/sveltekit, that reproduces the issue. Reproductions must be short, self-contained and correct and must not contain files or code that aren't relevant to the issue — please do NOT just paste a link to your project. Explaining how to reproduce is generally not enough. It pushes the burden of creating a reproduction project onto a small set of volunteer maintainers and isn't scalable. If no reproduction is provided, the issue will be closed.
I tried:
Just add the default tailwind css directives.
Everything worked just fine. You're going to have to create a GitHub repository with a skeleton project that reproduces the issue:
npm init svelte@next 5720-env-handling-repro
# Select skeleton project
npm i
git init && git add --all && git commit -m "Initial commit"
# Reproduce the issue
git add --all && git commit -m "feat: Issue reproduced"
git remote add origin <github_url>
git push -u origin master
I just upgraded my Tailwind project to the latest version and confirmed there were no issues. We'll close this if there isn't a reproduction soon
Damn I cannot reproduce this either in a clean repo...
But why on earth does app.css
depend on anything at all?
Can you share the whole repo with us? Perhaps privately? I believe there's an issue here, but it seems harder to cause it
I will try to when I get around to it. The project is part of a larger rush.js monorepo so there is much going on. I will try to slim it down as much as possible.
btw: I planned migrating from tailwind to windi and used this opportunity to finally bite the bullet and the problem did not surface again.
i have exactly the same issue on a sveltekit/tailwind project since the new env handling. it builds again as soon the
@tailwind base; @tailwind components; @tailwind utilities; @tailwind variants;
lines are removed from my css file.
@benjaminlewandowski
We have not been able to reproduce this issue. Can you file a new bug with the bug template and a reproduction? I'm sure there's a bug here -- we just can't make it happen.
Describe the bug
I'm using tailwind and have the following app.css:
Now all layouts that import the css file throw this error:
When I remove the tailwind directives or the whole import everything works but the styles are broken of course.
Reproduction
Just add the default tailwind css directives.
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response