Skip to content

Commit

Permalink
Update Tailwind executable call for v3.0
Browse files Browse the repository at this point in the history
As of `tailwindcss-rails` `>= 3.0` the command for the executable was
extracted to a separate `tailwindcss-ruby` gem, which causes an error in
the rake tasks we generate for the `solidus_admin`.

The error this fixes is
```
NoMethodError: undefined method `executable' for Tailwindcss::Commands:Module
```

Co-authored-by: Benjamin Willems <[email protected]>
  • Loading branch information
forkata and benjaminwil committed Oct 16, 2024
1 parent c3fea3e commit 58ca9ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/lib/solidus_admin/install_tailwindcss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
namespace :solidus_admin do
namespace :tailwindcss do
root = Rails.root
tailwindcss = Tailwindcss::Commands.executable
tailwindcss = Tailwindcss::Ruby.executable
tailwindcss_command = [
tailwindcss,
Expand Down

0 comments on commit 58ca9ea

Please sign in to comment.