Comments (2)
I reinstalled everything again, using:
rails new my_app -c tailwind -j esbuild
And I detected this error:
run bundle install
Bundle complete! 15 Gemfile dependencies, 83 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
apply /home/abc/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/jsbundling-rails-1.2.2/lib/install/esbuild/install.rb
Install esbuild
run yarn add esbuild from "."
Add build script
bin/rails aborted!
Rails::Generators::Error: The template [/home/abc/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/jsbundling-rails-1.2.2/lib/install/esbuild/install.rb] could not be loaded. Error: No such file or directory - npx (Rails::Generators::Error)
Caused by:
Errno::ENOENT: No such file or directory - npx (Errno::ENOENT)
Tasks: TOP => app:template
And this one too:
run bundle install
Bundle complete! 15 Gemfile dependencies, 83 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
apply /home/abc/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/cssbundling-rails-1.3.3/lib/install/tailwind/install.rb
Install Tailwind (+PostCSS w/ autoprefixer)
create tailwind.config.js
create app/assets/stylesheets/application.tailwind.css
run yarn add tailwindcss@latest postcss@latest autoprefixer@latest from "."
Add build:css script
bin/rails aborted!
Rails::Generators::Error: The template [/home/abc/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/cssbundling-rails-1.3.3/lib/install/tailwind/install.rb] could not be loaded. Error: No such file or directory - npx (Rails::Generators::Error)
Caused by:
Errno::ENOENT: No such file or directory - npx (Errno::ENOENT)
Tasks: TOP => app:template
from rails.
Solved. Yarn wasn't installed
from rails.
Related Issues (20)
- Cannot use `root` for two different subdomains HOT 1
- Safari 17.5-18 IOs TypeError undefined is not a constructor (evaluating 'new o.WebSocket(this.consumer.url,e)') HOT 2
- `where.missing(:association)` broken for composite primary keys HOT 1
- ActiveJob does not use the job locale inside the rescue_from block HOT 3
- Parallelized generator tests fail in race condition because destination is not worker aware HOT 3
- ActionText does not aware of rails_storage_proxy HOT 1
- Define custom URL helpers doesn't list route in /rails/info/routes HOT 1
- Is loading secret_key_base from environment no longer possible? HOT 2
- Is tutorial wrong?
- Eager load incorrectly sets 'through' associations on child objects HOT 1
- Error message mentions private ActiveStorage::Current.url_options HOT 2
- ActionView: Rendering a template with strict locals should not rewrite ArgumentErrors
- [ActionCable] Rejecting a subscription in `before_subscribe`
- [ActionText] Editor didn't load attachments after saving and opening edit again. HOT 7
- I18n::InvalidLocaleData error with ruby 3.3.3 and rails 7.1.3.4 with macOS Sonoma 14.5 HOT 1
- Undocumented, implicit presence validation when validating comparison HOT 4
- Rails 7.1 csrf_token_storage breaking changes HOT 2
- has_many association via foreign_key resolves to invalid collection proxy HOT 1
- Autosave association produces different error between 7.1 and edge in certain cases HOT 3
- LoadError Unable to autoload constant ActiveStorage::Representations::RedirectController, HOT 1
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 rails.