You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails 7.0,2,2 engine generated using rails plugin new tailtest --mountable --full -d postgresql --css tailwind
Does nothing with tailwind at all,
So adding manually does not work either.
Running, as per guidance, bundle add tailwindcss-rails adds tailwind to the gemfile rather than the engines tailtest.gemspec
So after adding the dependency to the gemspec spec.add_dependency "tailwindcss-rails", "~> 2.0"
and running bundle install does install the engine however the rest of the manual installation fails
then adding the require to lib/engine.rb
require "tailwindcss-rails"
module Tailtest
class Engine < ::Rails::Engine
isolate_namespace Tailtest
end
end
then running the install process fails
rails tailwindcss:install
Resolving dependencies...
rails aborted!
Don't know how to build task 'tailwindcss:install' (See the list of available tasks with `rails --tasks`)
Did you mean? app:tailwindcss:install
Obviously the app:tailwindcss:install command fails too.
So I am probably missing an initializer of some sort in then engine.rb file but no idea on what it should be so this needs documenting. I would be happy to update the documentation if I had the solution but it would be much better if the generator just worked.
The text was updated successfully, but these errors were encountered:
Is there going to be a solution to this? Or should I just accept that this gem doesn't work and use tailwind CDN directly as I wouldn't know where to start on fixing this myself.
Rails 7.0,2,2 engine generated using
rails plugin new tailtest --mountable --full -d postgresql --css tailwind
Does nothing with tailwind at all,
So adding manually does not work either.
Running, as per guidance,
bundle add tailwindcss-rails
adds tailwind to the gemfile rather than the engines tailtest.gemspecSo after adding the dependency to the gemspec
spec.add_dependency "tailwindcss-rails", "~> 2.0"
and running
bundle install
does install the engine however the rest of the manual installation failsthen adding the require to lib/engine.rb
then running the install process fails
Obviously the app:tailwindcss:install command fails too.
So I am probably missing an initializer of some sort in then engine.rb file but no idea on what it should be so this needs documenting. I would be happy to update the documentation if I had the solution but it would be much better if the generator just worked.
The text was updated successfully, but these errors were encountered: