Closed overdrivemachines closed 1 year ago
same here
empty js build
I tryed this https://www.bootrails.com/blog/rails-7-bootstrap-5-tutorial/ and this https://masterpro.ws/forum/ruby-ruby-on-rails/5142-rails-7-legkie-puti-installyatsii-bootstrap-5-bez-esbuild-node-yarn but got only this
Every ~ half a year I try to figure it out https://github.com/rails/rails/issues/45605 but always decide that it should'n be so difficult and don't woth it and give up
This is just a guess, but it seems like this step isn't actually adding the bootstrap or sass packages:
run yarn add sass bootstrap bootstrap-icons @popperjs/core from "."
I don't know much about the javascript/node ecosystem, but i noticed when i created a new rails project with bootstrap, this does not have a node_modules folder, even when i run yarn install
.
So i tried with a simple npm install
and now i have a node_modules folder, but yarn build:css
still fails with the same error, so i tried a yarn install
again. now this is doing something.
I ran bin/dev
or yarn build:css
and now everything works as expected.
What node version are you using?
If you have nvm installed for example, what does nvm current
output? Is it system
-- that's generally a common issue with installing dependencies.
Also...
yarn --version
npx --version
source (https://github.com/rails/cssbundling-rails#installation)This issue has been automatically closed because there has been no follow-up response from the original author. We currently don't have enough information in order to take action. Please reach out if you have any additional information that will help us move this issue forward.
had the same issue yesterday with 7.0.5
rails new app_name -j esbuild --css bootstrap
but today another approach went well.
rails new app_name --css bootstrap -j esbuild
Steps to reproduce
Expected behavior
New app should be created without any errors.
Actual behavior
See the error in the last few lines:
Error is also seen after running 'bin/dev' in terminal:
System configuration
Rails version: Rails 7.0.4.3
Ruby version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]