Skip to content

Installing Tailwind into an existing project #368

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

Closed
tmpearsall opened this issue May 30, 2024 · 2 comments
Closed

Installing Tailwind into an existing project #368

tmpearsall opened this issue May 30, 2024 · 2 comments

Comments

@tmpearsall
Copy link

I am attempting to install tailwindcss-rails into an existing, newly created, test project. The following error is displayed:

texamp % ./bin/bundle add tailwindcss-rails
[31494, #<Thread:0x000000010b26cd00 run>, #<NameError: uninitialized constant Gem::Source

  (defined?(@source) && @source) || Gem::Source::Installed.new
                                       ^^^^^^^^

Did you mean? Gem::SourceList>

tailwindcss exists on the system and was built following the instructions on Tailwind's site. I checked that tailwindcss is in /Users/tmpearsall/.rvm/gems/ruby-3.1.2/bin

Environment:
macOS 14.5
Ruby 3.1.2 via RVM
Rails 7.1.3.3

@tmpearsall
Copy link
Author

UPDATE: It appears that if I add tailwindcss-rails, with a version number, to the Gemfile and run ./bin/bundle install everything works. Not sure, except for the version number, what is different.

@flavorjones
Copy link
Member

@tmpearsall Please provide the complete output from the error. Without file or line numbers I can't diagnose what's happening.

However, that line of code is not from this gem, but from Bundler -- bundler/lib/bundler/rubygems_ext.rb -- and so you may want to report this at rubygems/rubygems.

@flavorjones flavorjones closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants