Note that my question is similar to: tailwind.css not being generated in a Rails 7 project in Heroku
So when I run my rails app locally everything works fine. But when I deploy it to railway, I get this error:
Showing /app/app/views/layouts/application.html.erb where line #8 raised:
The asset "application.tailwind.css" is not present in the asset pipeline.
The weird thing is that the app/assets/stylesheets/application.tailwind.css
file is definitely present in the project.
I have tried running rake assets:precompile
locally in my project then redeploying to Railway and I still get the error. I have also tried running bin/rails assets:clean assets:precompile
and then redeploying and I also still get the error.