Comments (11)
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:
bundle
yarn
rails g component Example
You'll get error tailwindcss [not found]
.
from tailwindcss-rails.
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.
@phanhaiquang try with tailwindcss-rails 0.5.1 version, on the webapp
from tailwindcss-rails.
@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.
@dixpac I use 0.5.1 version and this issue was resolved !
Thank you so much !
from tailwindcss-rails.
Also, when you hover on submit
, mouse cursor does not change to pointer
from tailwindcss-rails.
Also it looks like <h1>
tags don't work... other tags do
from tailwindcss-rails.
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.
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.
@phanhaiquang can you create demo app that reproduces issue, since resource
generators works for me 🙏🏼
from tailwindcss-rails.
@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
New project does not make this error
from tailwindcss-rails.
Related Issues (20)
- Classes not loaded while building
- TailwindCSS does not support react-on-rails with scss HOT 1
- Run bin/dev, but it failed to install foreman HOT 6
- Not working on x86 architecture
- Rails underscore escaping issues HOT 2
- Tailwind scaffold template is out of sync with rails/rails ERB scaffold template HOT 2
- May be time to remove @tailwindcss/aspect-ratio HOT 4
- Debugger hangs when I use the watcher as plugin! HOT 2
- bin/dev doesn't work for me. HOT 3
- Automate gem build and deployment with github actions HOT 2
- Investigate failing CI build
- Use of gem without sprockets (eg vite) aka standalone use of tailwind generators HOT 1
- Installing Tailwind into an existing project HOT 2
- Form Helpers & Tailwind
- "rebuild" speed is extremely slow when using safelist
- Lacking documentation of using postcss with `tailwindcss-rails
- Support Tailwind's theme() function in asset pipeline CSS files HOT 4
- Running `rails assets:clean assets:precompile` produces no public/assets/tailwind-[hash].css HOT 3
- Generate styles for the sessions#new view template HOT 8
- Puma plugin is not working with puma-dev
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-rails.