Skip to content

Error: "wrong number of arguments (given 3, expected 1)" after install #206

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
modusss opened this issue Sep 29, 2022 · 3 comments
Closed

Comments

@modusss
Copy link

modusss commented Sep 29, 2022

Hello,

I installed on

  • Rails 7.0.1
  • Ruby Ruby 3.0.0

Using these command:
bundle add tailwindcss-rails
rails tailwindcss:install

And it shows this error on my rails app:

Screen Shot 2022-09-29 at 16 49 18

I installed 2 times and restarted the server several times and the same error keeps going.

@adamdawkins
Copy link

adamdawkins commented Oct 26, 2022

I'm also having this issue, but not in development, only with RAILS_ENV=test rake assets:precompile or RAILS_ENV=production rake assets:precompile

  • Rails 6.1.4
  • Ruby 3.1.2

@adamdawkins
Copy link

It looks like it could just be that we're missing some commas in the rgb output:

background-color: rgb(0 166 81/var(--tw-bg-opacity));

is the line my compilation is complaining about.

@adamdawkins
Copy link

adamdawkins commented Oct 26, 2022

It's actually sass that's complaining about the rgb line here, with rails-sass 6 or rails-sass 5

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

3 participants