How should I bundle stimulus_reflex with esbuild in Rails 7

3
Rails
When I use webpacker gem, it is so easy to install stimulus reflex using stimulus_reflex gem in Rails 6. But in Rails 7, some problems occurs as follows: ``` $ bundle add stimulus_reflex $ rails s...
Ole Torp replied

How to use Bootstrap with CSS bundling in Rails Discussion

28
General
Thanks for another great video. It's no wonder why I sometimes feel lost in the Rails ecosystem. I learned Rails using the asset pipeline, then it switched to using Webpacker which I never fully un...
Almas Asghar replied

ArgumentError: Malformed version number string Yarn v0.1.1 2011 Jesper Kjeldgaard

2
Ruby
I have webpacker gem and yarn gem.. and I'm stuck with this error: (help please :))# console $ bin/rails webpacker:install rails aborted! ArgumentError: Malformed version number string Yarn v0.1.1 ...
huzefa-amura replied

How do I deploy to staging or production environments the stack Vue+Rails

0
Javascript
When I deploy an application using webpacker + vue + rails, and the template of the main component is on the rails view I get a vue error regarding security. Error: ``` [Vue warn]: It seems you ar...
Raimon Fernandez Sirera posted

Esbuild

5
Rails
I'm trying to get away from Webpacker... Installed the gem JSBundling on a Rails 6.0.1.x app, followed the setup procedures to use EsBuild, and it worked. Got BootStrap 5 working with the guidance ...

How to use Devise with Hotwire & Turbo.js Discussion

81
General
Hey Chris - If we are still using Webpacker, we just need to change data-turbolinks-track to data-turbo-track in our layout files? In your episode repo, you still have it as turbolinks. <%= st...

Setup MacOS 10.14 Mojave Discussion

19
General
Is anyone else receiving errors with MacOS 10.14 Mojave and the Mysql2 gem? I'm also getting a "Library not loaded: libssl.1.0.0.dylib (LoadError)" error when executing "rails server". Thanks!
Kemble Hildreth replied

Angular 8 with Rails 6?

2
Javascript
I'm working on getting Angular 8 working with Webpacker and Rails 6 and almost everything is working except for template rendering. When I go to the app and inspect, I can see the component selecto...
Sami Dghim replied

How do I find out why Stimulus controllers aren't getting compiled? Asset Pipeline problem

1
Javascript
I updated a Rails 6 app to Rails 7 and changed from Webpacker to esbuild/webpack. Added Stimulus, and after not getting controllers to work tried a basic hello_controller and then searched the appl...
Greg S replied

How do I integrate a bootstrap theme with rails 6 ?

4
CSS
Hello, I'm a new subscriber and would like to integrate a new bootstrap theme from https://themes.getbootstrap.com/ Which tutorial would you recommed? I used the "How to use bootstrap with web...
Tim Jones replied

New Project Rails 6 rc1 or 5.2.3?

5
General
Rails 6 should be just around the corner once they fix a couple of bugs/regressions. Since you probably won't be finished with your app by then, you won't have to worry about the upgrade if you sta...
Lardius replied
Solved

Stimulus based ActionCable Subscriptions - possible race condition related to turbolinks preview?

0
Rails
Hi, I've been upgrading a legacy app to leverage Webpacker and Stimulus with the intention of moving to Hotwire eventually too. We have a few ActionCable (AC) channels used here and there and it se...
Craig Chamberlain posted

Rails Webpack caching

1
Javascript
I'm having an issue in development where I've changed my main application.js file in /javascript/packs/ and the file is being cached so having a hard time testing new changes. Does anyone else have...
Solved

How do I import a Sass library from within a "node_module" (Rails 5.1)?

11
Rails
Pretty much the question above! I have a Rails 5.1 app with webpacker installed, and I used npm to install a front end framework: `npm install bulma --save` Now that it is inside of `node_module...
Ryan Martin replied
Solved

Thanks Chris, Just a small request.

0
Rails
Chris, I'm having a somewhat difficult time using and learning React on rails with webpacker and react-router and react-router-dom while using complex routing inside the react router and simultaneo...
ericscottmarquez posted

Adding Javascript to Rails 6

7
Javascript
Hi. I am fairly new to Rails and so far I have been unsucessful at adding any JS to my Rails 6 project. I have seen many videos and tutorials but i seem to run in to the same issue. Basically I get...
Chris Oliver replied
Solved

Rails App production(Droplet DigitalOcean) Assets Issue

0
Rails
Hi, So i deployed my rails app on the digitalocean droplet, its using webpacker. So when i go to my site, css and js are not working while i get this in the console: "rails_app/packs/css/applicatio...
SLLAF posted

Rails 6 - What Javascript/CSS Framework is good for me?

0
General
Dear community, since I'm not a good javascript programmer and new to Rails 6 (especially webpacker), I'm looking for a good framework for the whole fancy shit (Slider/Datepicker/Autocomplete/..)....
Chris-P-Chicken posted

How do I install UIKit via yarn?

0
CSS
Answer: 1. Add uikit through yarn: yarn add uikit 2. Create a file to be transpiled by webpacker: app/javascript/uikit.sass (or app.sass... whichever name suits you best.) 3. Within uikit.sass imp...
Solved

Push changes to Node packages to Heroku

1
Rails
Okay, full disclosure, I upgraded to Rails 6 without fully understanding the consequences of using Actiontext and Webpacker. It's all new to me. So in my folly, I changed some of the Trix css direc...
Dan Donche replied

Want to stay up-to-date with Ruby on Rails?

Join 90,720+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.