-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Description
To integrate Tailwind with your Rails project, first, set your gem to the main branch by adding the following line to your Gemfile:
gem "tailwindcss-rails", github: "rails/tailwindcss-rails", branch: "main"
Afterward, run:
bundle update
Next, generate authentication with:
bin/rails generate authentication
bin/dev
Error Encounter
You might encounter this error:
08:49:46 css.1 | bin/rails aborted!
08:49:46 css.1 | Tailwindcss::Commands::ExecutableNotFoundException: Cannot find the tailwindcss executable for x86_64-linux...
Steps to Resolve:
- Ensure you're using the latest Bundler version:
gem install bundler
bundle update --bundler- Add the platform to your Gemfile.lock:
bundle lock --add-platform x86_64-linux
bundle install- Check Bundler configuration: Ensure force_ruby_platform isn’t set to true:
bundle configI already run the instructions but still an error.
Metadata
Metadata
Assignees
Labels
No labels