webpacker Questions

4

Solved

Have been using cocoon gem for nested forms in rails 4 & rails 5 apps. Currently, I was updating one of the rails 5.2 app (which is using cocoon gem) to rails 6. As rails 6 is using webpacker...
Yaker asked 17/9, 2019 at 13:3

1

Solved

I bumped webpacker from 4.x to 5.2.1 and started getting this warning: The resolved_paths option has been deprecated. Use additional_paths instead. This seems straightforward enough, my config/web...
Outrage asked 15/10, 2020 at 1:1

4

I have a Rails 6 application and using Webpacker for assets. I have the following code in file app/javascript/packs/application.js : export var Greeter = { hello: function() { console.log('hell...
Exonerate asked 10/10, 2019 at 19:55

4

I have a Rails 6 app that was successfully deployed to Heroku and worked on localhost:3000. I added tailwindcss via yarn and webpack. It runs perfectly fine on localhost, but does not run on herok...
Craft asked 20/1, 2020 at 21:48

9

Solved

I am receiving this error when I try to load a page in my new rails 5.1 app using webpacker. I would like webpacker to handle CSS as well. Started GET "/" for ::1 at 2017-09-01 12:20:23 -0400 Pro...
Matheny asked 1/9, 2017 at 16:38

5

I have a problem with including images in my views using Ruby on Rails Webpacker. When i try to insert image in my view using html img tag and asset_pack_path i got an error. My images is located i...
Paperback asked 8/4, 2019 at 10:23

2

We are using Webpacker for loading JavaScripts and CSS files into the webpage. Currently, in webpacker.yml we have set the source_path to app/javascript. Which is working fine to load the JavaScrip...
Claret asked 22/6, 2018 at 7:22

8

I'm currently trying to implement a datepicker into my application, the problem is that there is no documentation on how to add the jquery-ui-rails gem through webpacker. Probably there is another...
Unfit asked 19/8, 2019 at 11:19

1

With .env files, it was easy to inject variables in webpacker js packs. Since 5.2, you can use the encrypted secrets, but is there a way to read (decrypt) them in inject some of them on webpacker b...
Kenaz asked 30/10, 2020 at 10:21

2

Solved

When creating a new rails project with Rails 6, it creates an application.html.erb with stylesheet_link_tag to load CSS and javascript_pack_tag for javascript files. Now, rails 6 also provide a st...
Theretofore asked 1/3, 2020 at 4:27

3

Solved

From app/javascript/packs/application.js I'm trying to import "../foo" where the file is foo.js.erb. Webpacker and yarn are working great for other imports in application.js, for example import ".....
Sicken asked 12/5, 2017 at 19:44

1

Trying to run my Rails app as a Docker container but got the following error when opening a page: Webpacker can't find application in /app/public/packs/manifest.json. Possible causes: 1. You want ...

0

I am using SplitChunksPlugin with Webpack 4 through Rails + Webpacker. I have an app that I want to split into chunks - except for one entry point which is for the public that I want to be a self c...
Sikes asked 22/9, 2020 at 11:17

1

When I run my Rails 6.0 application on development environment I get the next trace on the development.log [Webpacker] Compiling… [Webpacker] Compilation failed: /home/alejo/rails_project/node_mod...
Alegar asked 2/3, 2020 at 15:19

1

Solved

According to my opinion image_pack_tag is the helper that we use in the views to place the images in our HTML form. But in the documentation of webpack I see asset_pack_path also. Now I am confused...
Quadrature asked 3/9, 2020 at 7:8

1

Solved

As a beginner on Rails 6. Whenever, i click on the Roar Link then it gives me the following error. The following files are attached below. I just want to add custom file(demo.js) into my code so th...
Watermelon asked 9/8, 2020 at 16:27

2

Climbing the learning curve with Webpacker and Rails 6. I've installed Boostrap 4 using Yarn and Webpacker. When I try play with Bootstrap components in a browser's JS console then I get: TypeErro...
Gonfanon asked 2/10, 2019 at 4:57

0

I encountered a "_typeof is not defined" error when I imported jstree.js with "rails/webpacker",i.e. Webpack in Rails6. This error seems to be caused by Babel. Babel defined _ty...
Doran asked 19/8, 2020 at 5:43

4

Solved

I am trying to update a Rails 3 app to Rails 6 and I have problems with the now default webpacker since my Javascript functions are not accessible. I get: ReferenceError: Can't find variable: func...

2

This error happens randomly during testing (standard Rails testing toolkit) after running rails test. Failed test can be any test in any file. This error happens usually in testing environment dur...
Diametrically asked 30/10, 2019 at 8:31

0

I have built one Rails Engine using rails 6.0.3.2 as by default webpacker is not present inside the engine so I have configured the webpacker manually using https://github.com/rails/webpacker/blob/...
Digenesis asked 29/6, 2020 at 5:57

1

Solved

Getting an error trying to load a page. Rails 6, Ruby 2.7.1. Webpacker for javascript and SCSS From the Terminal (similar to the Chrome Console error ) Module build failed (from ./node_modules/babe...
Curdle asked 24/6, 2020 at 23:3

1

I’m having an issue loading local font files with @rails/webpacker. The fonts are loaded in the development environment but not in the production environment. It seems like a really simple issue bu...
Intention asked 4/11, 2019 at 23:53

4

Solved

Currently we use Rails 6 for our application. It's working fine in production but in development mode it throws some errors. Please assist me. This is how my application.js and application.css loo...
Quantize asked 22/10, 2019 at 14:19

1

We have an issue since we upgraded our project's dependency from rails 4.2 to rails 5.2 We use both Sprockets assets and Webpacker. When booting the server for the first time, and loading the firs...
Radicle asked 15/5, 2020 at 9:23

© 2022 - 2024 — McMap. All rights reserved.