Code Monkey home page Code Monkey logo

Comments (11)

rmontgomery429 avatar rmontgomery429 commented on August 28, 2024 3

I am getting this error when using view_component generators. I noticed that @dixpac just pushed a fix that was just merged an hour ago and so I tried updating to main but... I'm still seeing the error.

I created a bare minimum reproduction rails app with only the tailwindcss-rails and view_component gems.

gem "view_component", "~> 2.40", require: "view_component/engine"

gem "tailwindcss-rails", github: "rails/tailwindcss-rails", branch: "main"

To reproduce the issue in that repo you just need to:

  1. bundle
  2. yarn
  3. rails g component Example

You'll get error tailwindcss [not found].

from tailwindcss-rails.

roelandmoors avatar roelandmoors commented on August 28, 2024 1

Generating a resource or controller works for me, but generating a viewcomponent has this error. I'm also using rails 7 alpha 2 and tailwindcss-rails 0.5.1. I'm using Ruby 3 (you have 2.7)

I created my rails 7 project with rails new demo --css=tailwind

from tailwindcss-rails.

dixpac avatar dixpac commented on August 28, 2024 1

@phanhaiquang try with tailwindcss-rails 0.5.1 version, on the webapp

from tailwindcss-rails.

dixpac avatar dixpac commented on August 28, 2024 1

@roelandmoors @rmontgomery429 thanks.
I've opened PR on the view_component to fix this, but lets see , if they don't accept it I'll find another way

from tailwindcss-rails.

phanhaiquang avatar phanhaiquang commented on August 28, 2024 1

@dixpac I use 0.5.1 version and this issue was resolved !
Thank you so much !

from tailwindcss-rails.

yshmarov avatar yshmarov commented on August 28, 2024

Also, when you hover on submit, mouse cursor does not change to pointer

2

photo_2021-09-30_21-34-00

from tailwindcss-rails.

yshmarov avatar yshmarov commented on August 28, 2024

Also it looks like <h1> tags don't work... other tags do

from tailwindcss-rails.

stuzero avatar stuzero commented on August 28, 2024

I have the same error error tailwindcss [not found] when generating a controller - the view is never created

ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
Rails 6.1.4.1

from tailwindcss-rails.

phanhaiquang avatar phanhaiquang commented on August 28, 2024

I also got this issue when generating a "resource"

  create    app/controllers/<resource>_controller.rb
   error    tailwindcss [not found]

I am using 7.0.0.alpha2
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
tailwindcss-rails 0.5.0

Scaffold works fine.

from tailwindcss-rails.

dixpac avatar dixpac commented on August 28, 2024

@phanhaiquang can you create demo app that reproduces issue, since resource generators works for me 🙏🏼
Screenshot 2021-10-13 at 15 32 49

from tailwindcss-rails.

phanhaiquang avatar phanhaiquang commented on August 28, 2024

@dixpac I am sorry for late. I tried to reproduce this issue by a new project, and it does not happen. Then, I go to my project and retry, error happen. So that I need to step by step compare 2 projects. I will let you know when I found the different that causes this. This might take a while.

My current project that this issue happens
image

New project does not make this error
image

from tailwindcss-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.