-
Notifications
You must be signed in to change notification settings - Fork 97
application.css is not created #56
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
Comments
I think I was just experiencing this exact problem. I am not sure on the exact cause/solution but these were the things that I noticed and what has worked for me. Note when debugging this I also switched to Propshaft instead of When installing tailwind using cssbundling I am moving the It seems the standard install process means that my tailwind settings don't get picked up @tcgumus I think this step might explain why you are seeing some base level tailwind classes but not utilities or components... it is hard to say though as I don't full understand the whole process. I also realised that I have moved away from the convention of naming the files In
In
In
In
I also |
When the npm version is too low, we output instructions during the setup on what you have to do instead: https://github.com/rails/cssbundling-rails/blob/main/lib/install/bootstrap/install.rb#L16-L21. I can see how that might be easy to miss, though. So feel free to explore ways to make it easier to diagnose with a PR 👍 |
I solved the case by deleting public css/js folders and avoiding asset compile. By this way, rails 7 directly using css files in |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I have a new app. Installed the tailwind with this gem. I did a assets:precompile. I see the components but not color. What am I missing?
I can see that application.css has updated. But my application doesn't recognize new css. I clear cache but can't see any changes in colors.
It changes the application.css in my assets folder but not in public folder.
Thank you
edit:
I noticed rails didn't create
app/assets/stylesheets/application.css
file.I created the file and it build application.css in public folder.
Problem solved for me but I think this is still an issue.
I found the similar error in the issue rails/rails#43677. It looks like it has been resolved but not in my case. I did exactly same thing that @dhh did in the YouTube video.
The text was updated successfully, but these errors were encountered: