Skip to content

Rails includes the unprocessed CSS file in the HTML causing a 404 error #175

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

Open
j127 opened this issue May 7, 2025 · 0 comments
Open

Comments

@j127
Copy link

j127 commented May 7, 2025

When I start a Rails app with this command, it causes a 404 error by default, because it's loading the unprocessed application.tailwind.css file in the browser, which tries to do an @import "tailwindcss";.

Here's a repo that reproduces the problem. I wrote notes in each of the four commits.

It also shows bug #169 (where Bun is used even when yarn is managing the project), which I think is critical, because it breaks projects created with the rails new command.

Screenshots in Firefox:

Image

Image

The contents of that file that is served to the browser:

@import "tailwindcss";

The actual processed Tailwind code is in the other CSS file above that raw one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant