-
Notifications
You must be signed in to change notification settings - Fork 187
Help with tailwindcss-rails setup #235
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
Have you tried running bundle lock --add-platform x86_64-linux |
@thisisrishabh22 Unfortunately I can't reproduce what you're seeing on an x86_64-linux system. Can you run "bundle env" in that project directory? It would help to understand exactly what versions of gems, rubygems, and bundler you're running. Thank you! |
@flavorjones Environment
Bundler Build Metadata
GemfileGemfilesource "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby "3.0.1"
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.0.4"
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"
# Use postgresql as the database for Active Record
gem "pg", "~> 1.1"
# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.0"
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem "importmap-rails"
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"
# Use Tailwind CSS [https://github.com/rails/tailwindcss-rails]
gem "tailwindcss-rails"
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"
# Use Redis adapter to run Action Cable in production
# gem "redis", "~> 4.0"
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false
# Use Sass to process CSS
# gem "sassc-rails"
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"
group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri mingw x64_mingw ]
end
group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
# gem "rack-mini-profiler"
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"
end
group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"
end Gemfile.lock
|
I've tried running |
Well you've got the right gem version and platform installed:
So I'm not sure why this isn't working properly. It's possible the files are corrupted on disk. Can you try:
and paste the output here? |
Hi @flavorjones The outputs of the commands you shared are given below: 1.
|
This is strange to me, and I'm wondering if this is something strange with how WSL handles some linux binaries. If you download the tailwindcss-linux-x64 executable from https://github.com/tailwindlabs/tailwindcss/releases, are you able to run that binary? |
@flavorjones $ sudo ./tailwindcss-linux-x64
./tailwindcss-linux-x64: 1: ELF����: not found
./tailwindcss-linux-x64: 4: Syntax error: word unexpected (expecting ")") |
OK - then can I ask you to file a bug report upstream? This is the binary that we're repackaging, so if the upstream binary is causing the problem, that team needs to be aware and prioritize a fix. |
Resolved in upstream discussion. |
Hi there, I'm trying to use tailwind in my rails project, but I'm not able to install & run it on my system. It seems like there is some issue with the
x86_64-linux
platform as I'm using WSL to build my ruby on rails apps.In my previous projects, I've also tried installing
tailwindcss-rails
separately following the official guide: https://tailwindcss.com/docs/guides/ruby-on-rails, it didn't work and was throwing the same error.Here's the command which was used for installation:
rails new task-management-app --database=postgresql --css=tailwind
Here's the log & error which was generated:
Can anyone of you please provide a workaround or any other possible fix?
The text was updated successfully, but these errors were encountered: