Questions tagged [jsbundling-rails]

20 questions
0
votes
0 answers

How to debug Rails Stimulus with Webpack

Rails 7, jsbundling-rails, webpack A page using Stimulus gives a JavaScript error which in Chrome points to a compiles JavaScript. For me it would be more useful to have it point to the original Stimulus JavaScript. Maybe I need to dig back into…
Greg
  • 2,359
  • 5
  • 22
  • 35
0
votes
0 answers

Looking for file in javascripts folder but now is javascript folder in Rails 7 jsbundling-rails

I'm getting the error GET http://localhost:3000/javascripts/olLocationMap.js net::ERR_ABORTED 404 (Not Found) The file is in javascript and does load however. What is telling Rails to look in /javascripts and how do I get rid of it? I have enough…
Greg
  • 2,359
  • 5
  • 22
  • 35
0
votes
1 answer

Upgrade Bootstrap in Rails 7 app with esbuild

Gemfile ruby '3.1.2' gem 'rails', '~> 7.0' gem 'pg' , '~> 1.4.3' gem "jsbundling-rails" gem "sprockets-rails" gem "turbo-rails" ➜ yarn upgrade bootstrap Results in: ├─ bootstrap@4.6.2 package.json is the similar "bootstrap": "^4.5.0", How do I…
Greg
  • 2,359
  • 5
  • 22
  • 35
0
votes
0 answers

Setup rails 7 and React as one App using jsbundling-rails on windows

Following there github page All have done earlier rails new hello-world -j esbuild bundle add jsbundling-rails When I run rails javascript:install:esbuild I got the following errors below Under their FAQ: Is there a work-around for lack of glob…
Ismail
  • 11
  • 1
  • 4
0
votes
0 answers

CSS assets paths in 3rd party libraries when using jsbundling-rails

I'm in the process of updating my Rails app to version 7. As part of this, I've removed Webpacker and am trying to move my whole assets solution to the new jsbundling-rails and cssbundling-rails gems. So far it's working really nicely and is a…
rctneil
  • 7,016
  • 10
  • 40
  • 83
1
2