webpacker Questions
2
I have following structure for Javascript in my Rails 6 app using Webpacker.
app/javascript
+ packs
- application.js
+ custom
- hello.js
Below shown is the content in the above mentioned JS ...
Clardy asked 13/5, 2020 at 14:32
1
Given a Ruby on Rails project using WebPacker project, which folders need caching on a CI service to ensure system specs perform optimally? My build pipeline is currently caching public/packs-test ...
Bilbe asked 15/6, 2018 at 22:59
1
Solved
So i already imported the application.scss with the tags
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
<%= stylesheet_pack_tag 'application', media: 'all', '...
Cherice asked 1/3, 2020 at 2:33
1
I've a new Rails 5.2.4.1 instance created with --webpack=stimulus. Dockerized the whole thing. Using stimulusjs there's no problem - import { Application } from "stimulus" works like its supposed t...
Dowsabel asked 29/2, 2020 at 13:36
2
I'm using a Rails 5.2 app and have an application.scss file filled with individual imports
@import '../stylesheets/pages/home';
@import '../stylesheets/pages/product_details';
@import '../styleshe...
Pinsky asked 4/1, 2019 at 16:27
0
I'm trying to configure Webpacker to work with a Rails engine. I'm specifically interested in how people are setting up their webpacker.yml to move their engine's assets to the main app's /public/ ...
Oscular asked 14/1, 2020 at 16:30
3
I created example project react-rails with webpacker. but show error "Uncaught ReferenceError: Person is not defined". help me How use react-rails with webpacker?
The processing I performed is as f...
Exaggerated asked 22/4, 2017 at 10:35
1
Solved
With the arrival of Webpacker to Ruby On Rails, I can't find a way to use my JavaScript functions.
I have a file called app-globals.js with a function to test:
function alerts() {
alert("TEST")
...
Doggett asked 15/12, 2019 at 23:50
3
I am migrating from using the asset pipeline to webpacker in Rails 5.2. My AJAX responses are all causing Uncaught ReferenceError: $ is not defined in rails-ujs.js errors in the browser console.
I...
Mantra asked 7/5, 2019 at 11:58
2
Solved
I am trying to use vue js in rails.
Everything works, except when I tried to use <style> inside .vue component
The exact error is:
./app/javascript/layouts/dashboard.vue?vue&type=sty...
Kadner asked 14/11, 2019 at 11:32
3
Solved
I'm trying to deploy a rails 5.1 & react app created with webpacker gem using AWS Elastic Beanstalk. The problem is I keep getting the following error:
Webpacker requires Node.js >= 6.0.0 a...
Lalo asked 15/2, 2018 at 1:29
3
Solved
I am trying to integrate Webpacker in a Rails 4 app I am working on. I've added the gem to the Gemfile and run the directives to get everything set up for using Webpacker and Vue.js. The assets are...
Pallbearer asked 8/4, 2019 at 9:46
0
I am writing frontend and for the first time I needed to connect babel in a RoR application using webpacker. I don’t understand what I should interact with to realize this.
I downloaded the necess...
Ingest asked 1/11, 2019 at 18:16
2
Solved
According to rails/webpacker documentation, extract_css is default to true in production environment and false in development. From what I observed:
With extract_css true, webpacker will emit a c...
Indicative asked 22/1, 2019 at 0:18
5
Solved
i just switched to Rails 6 (6.0.0.rc1) which uses the Webpacker gem by default for Javascript assets together with Rails-UJS. I want to use Rails UJS in some of my modules in order to submit forms ...
Dixon asked 14/5, 2019 at 10:17
0
I'm trying to import fonts in my rails 6 app for hours now.
It's a fresh app using Rails 6, Webpacker 4 and PostCSS.
Everything is loaded (with no error) through webpack (css, js, images). Compila...
Catercornered asked 12/9, 2019 at 22:17
4
So I have been using rails for quite a while. But with Rails 6 I have been really struggling to get moving. I have some custom gems I use for assets and things and I cannot figure out how to load t...
Cyprinid asked 30/7, 2019 at 15:16
1
Solved
I use webpacker with Rails and am installing taildwindcss right now. Their installation guide says to use an @import method if I'm using postcss-import. I must say I get confused whenever I have to...
Gastongastralgia asked 1/9, 2019 at 19:42
1
I've just upgraded my Rails app from 5.1.6 to 5.2 and took the chance to also upgrade Webpacker from 2.0 to 3.4.3.
Now, when I push the app to Heroku I get the following error (vendor.js is one th...
Creditable asked 24/4, 2018 at 11:6
1
Solved
I've just installed webpacker on my Rails 5.2 application and when trying to run bin/webpack-dev-server I get the following error:
✖ 「wds」: Invalid configuration object. Webpack has been initialis...
Decemvirate asked 16/5, 2019 at 14:32
1
Solved
I have my Rails apps running and have Webpacker installed. I have the webpack-dev-server running as a Docker container but it doesn;t seem to be responding to changes in my files and recompiling.
...
Modiste asked 7/3, 2019 at 22:11
2
Solved
I'm trying to import a file that is in the rails asset pipeline and for some reason webpack can't find it.
Here is my tsconfig.json:
{
"compilerOptions": {
"declaration": false,
"emitDecorator...
Tinfoil asked 26/2, 2019 at 7:28
1
Solved
I've added react-rails to an existing project that we're slowly migrating over to react.
Current webpacker.yml
default: &default
source_path: app/javascript
source_entry_path: packs
publi...
Wightman asked 14/2, 2019 at 19:4
5
Solved
Could you explain me how to access assets from webpacker gem within vue.js components? For example - how to create div with background image. I've tried use /app/assets/images and /app/javascripts/...
Hic asked 7/8, 2017 at 15:38
5
Generic issue
I have just started adding webpacker with angular 5 to the existing rails application. All is fine except for a weird issue with a DI in test.
It seems my Angular components are jus...
Doenitz asked 3/1, 2018 at 22:10
© 2022 - 2024 — McMap. All rights reserved.