-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
TypeError: Cannot read properties of undefined (reading 'nodes') #17064
Comments
Hey! I tried running |
I'll sort a repro when I'm back at home - travelling the next few days. I did get it corroborated here though. It seems to only happen when using the latest version of the CLI via npx/bunx ... if I explicitly specify version 4.0.9 in the npx/bunx command everything works correctly |
Hey @philipp-spiess, @hades200082 and I are using the same setup, and I just encountered the same issue. @import "tailwindcss" theme(static);
@import "../bin/lumexui/theme"; <--- @theme
@source "../../LumexUI.Docs.Client/{Pages,Components}/**/*.{razor,razor.cs}"; <-- works as expected
@source "../bin/lumexui/*.cs"; <--- the problem For some reason, only the second @source definition is causing the issue here. Version 4.0.9 is the last working version. Edit: I'm not sure if glob patterns actually work or if Tailwind simply scans the entire directory. I just copy-pasted this when migrating to v4 and didn't encounter any issues. |
Heya! Friendly reminder that we still don't have a reproduction for this issue that we can run locally which means we can't really investigate the issue. |
Managed to reproduce this issue.
Running bun v1.2.8 I've done this completely on accident, but this issue certainly exists. |
Weird thing I've noticed, no matter how much I try to change the file, it doesn't stop this error. |
Just giving it a file is enough for the error to show up. |
What version of Tailwind CSS are you using?
4.0.0
What build tool (or framework if it abstracts the build tool) are you using?
@tailwindcss/cli
What version of Node.js are you using?
Bun 1.2.x
What browser are you using?
Edge
What operating system are you using?
Windows
Reproduction URL
N/A - error is in the build process and can't be replicated on play
Describe your issue
When running
bunx @tailwindcss/cli -i ./Blazor/Blazor/wwwroot/app.css -o ./Blazor/Blazor/wwwroot/app.min.css --watch
it intermittently outputsTypeError: Cannot read properties of undefined (reading 'nodes')
The text was updated successfully, but these errors were encountered: