Questions tagged [webpacker]

Webpacker is a Ruby gem for Ruby on Rails that makes it easy to use Webpack, the JavaScript module bundler, to manage application-like JavaScript in Rails. It coexists with the asset pipeline and can even replace it by processing CSS, images, fonts, and more.

Features

License

MIT

Links

GitHub

RubyGems

817 questions
0
votes
0 answers

All files from webpacker on production is undefined

I tried to deploy RoR 5.2 app on Heroku and DigitalOcean, and got the same problem. All files from webpacker is undefined, when you click on them from browser inspector. What can be wrong? Screenshot attached. undefined webpacker files
n1ck
  • 1
0
votes
0 answers

Unable to load any page. Rails app with Webpacker to Heroku App crashed

Before adding webpacker to my application my production environment in heroku was working just fine. The moment i added webpacker i started having this problem. I searched around for this issue and tried removing /public/packs and those solutions…
0
votes
1 answer

Using NPM or Yarn with Webpacker in a Rails project

I have been reading the Webpacker documentation for Rails to potentially use ReactJS in a Rails project. It says that Yarn is a dependency of Webpacker. But I noticed that NPM 5 has been upgraded to be as fast and efficient as Yarn. My question: Can…
Daniel Viglione
  • 8,014
  • 9
  • 67
  • 101
0
votes
2 answers

Reactjs with Rails, remove duplicated createMuiTheme

the code below is one of my component. i am creating this with Ruby on Rails framework, with react_rails gem and webpacker, experimenting on Material UI. as you can see, i am changing the Material UI default font theme with my own choice of font.…
ckeat9
  • 162
  • 1
  • 14
0
votes
1 answer

How to pass parameters from root html element to ReactJS from Ruby on Rails app

I am trying to implement ReactJS on a Ruby on Rails application using webpacker gem. Does anyone know how to read/pass data attributes to ReactJS component. Please find the code below. in index.html.erb
Charith H
  • 345
  • 1
  • 13
0
votes
0 answers

Duplicate page fetch with Rails 5.2 and Turbolinks, Webpacker, and Angular 6

I have a contact page in Rails that runs an Angular 6 application, <% content_for :content_title, "Contact Us" %> <% content_for :metatags do %>