Search Results for "webpacker"

Lessons

















Forum Threads

how to properly configure webpack for production

0
Rails
root@ubuntu:~/Make-Rails# ./bin/webpack [webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - configuration.no...
Sourabh Soni posted

Cannot create Rails App - gem issues "Ignoring nokogiri" and other gems

5
Rails
When I try to create a new Rails App it fails. I am on Big Sur 11.3, Ruby 2.7.2, and when type rails-v shows 6.0.3.4 but also ignoring quite a few gems including nokogiri and 6-7 others. I have tri...
Ryan Mindigo replied

'Uncaught ReferenceError: Rails is not defined' even after importing it in application.js file

0
Javascript
hello, i am really new to Rails. I wanted to make ajax call to a function in controller. I have following in my view: ``` function fetchMessages() { // Get user input from text field let inpu...
anujmohatkar posted

Need help on Webpacker issue with Rails 6

0
Rails
I am using Rails 6, Ruby 2.7, and Webpacker 4. X I am getting below error ActionView::Template::Error (Webpacker can't find application.js in /Users/developer/Documents/Projects/knowhub/public/pack...
swathi arisankula posted

"export 'default' (imported as 'Vue') was not found in 'vue'

1
Javascript
I'm following Chris' tutorial "Embeddable Javascript Comments Widget Models - Part 1" and I'm getting that error, any pointers on how to fix it? I'm running Rails 6.1.7.2 and my package.json looks...
Esteban Utz 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

Sprockets::FileNotFound in Users::Sessions#new

5
Rails
Thank you for allowing me to be part of your group and my problem is the following, I currently have version 2.7.0 of ruby ​​on my computer, version 5.1.7 of rails, they just shared a project that ...
Gilbert Wise replied
Solved

Checking webpacker is cause of for time sink

1
Rails
Working on a ruby on rails application. Let's say I make a small change to any class file and make a request to some page on my application. Then my response times are increased by anywhere from 2...

I get error when deploy to heroku

1
General
I get error when deploy to heroku Here is the log file: -----> Building on the Heroku-20 stack -----> Determining which buildpack to use for this app ! Warning: Multiple default buildpa...
Alan Reid replied

Rails 6, Webpacker and Docker on Apple M1

0
Rails
Hi Chris, I tried to leave a comment for episode #389 but was not successful. Not sure why. Anyway, I'm developing in Apple M1 and trying to dockerize a Rails 6 application, but running into a lot...
Gabriela Jack posted

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

Chrome Only - getElementsByClassName error

0
Javascript
I am hoping someone might be able to shed some light on this issue. I have this JS code (below) located in packs -> application.js. It grabs the class name and adds additional class. The divisio...
Mountaindog posted

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

Need helping getting started with Ruby on an m1 MacBook.

0
General
I'm new to Ruby on Rails and am having trouble getting my first project up and running. I used Rosetta to open my terminal and installed homebrew, ruby, rails, postresql, mysql, and sqlite3, as we...
Humusk1 posted

How do I set up webpacker for production environment?

0
Rails
Im running my project first on my local machine using Production environment before deploying to production to make sure all is running fine. im using docker with Rails version 5.2 and webpacker ve...
Dev 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 Bootstrap with CSS bundling in Rails Discussion

27
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...
Mountaindog replied

How to use ESBuild in Rails with JSBundling Discussion

30
General
This is awesome, I have been using it for a couple of weeks now. I didn’t necessarily think webpacker was slow, except maybe on Heroku builds. But when you use this, you wonder why you put up with ...
Aaron replied

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

Setup MacOS 12 Monterey Discussion

30
General
Hello Chris, Thanks a lot for this guide. I was having a really hard time trying to install homebrew and rails on my MacBook after I installed Monterey. 😃