Questions tagged [shakapacker]

14 questions
3
votes
1 answer

Shakapacker, Rails, React: Doesn't load up app/assets non-react javascript

I updated my app to Rails 7 and moved it from webpacker to shakapacker. It is mostly a react frontend, with some old pages in haml with jquery listening on js files in app/assets. Shakapacker and react front end is working properly, the rails views…
madav
  • 2,918
  • 1
  • 13
  • 17
1
vote
1 answer

Uncaught Error: Cannot find module '@hotwired/turbo-rails'

I am using the Shakapacker https://github.com/reactjs/react-rails and I have come across this error despite following all the steps in the Get started with shakapacker section I am not sure why this is happening any help is…
CoolGuy
  • 99
  • 7
1
vote
1 answer

Loading an .erb file in shakapacker

How can I load a file like? require('../src/active_admin/admin/menu.coffee.erb'); if I'm using Shakapacker? (new webpacker)
aarkerio
  • 2,183
  • 2
  • 20
  • 34
1
vote
0 answers

React integration with Rails (basic tutorial failing)

I'm trying to integrate Victory charts to my RoR application using Shakapacker and React On Rails gem. I've got the hello world example working, but when I use the code from Victory, I get the following error: import PropTypes from…
mike
  • 1,526
  • 3
  • 17
  • 25
0
votes
0 answers

Module not found: Error: Can't resolve '../types/utils' in '/my-app/node_modules/svelvet/Edges'

I've been trying to get this to work for the last 30 hours with no luck, I have a Rails 6 app with Svelte 3, React 18, Node 18 using Shakapacker 6, when I try to compile I'm getting this error: ERROR in ./node_modules/svelvet/Edges/utils.js…
0
votes
0 answers

How to embed javascript(react) component using webpack(webpacker/shakapacker) on another webpage

I want to implement a simple chat component written in react in rails 6 application. My idea is to put js link on another webpage on which my chat will be rendered. Basically, I follow gorails.com tutorial. Source code of it: link Just for test…
Panczo
  • 424
  • 5
  • 20
0
votes
0 answers

Embedded JavaScript app disappears after coming back to page

The Problem: When I reload a page with an embedded Svelte app, the app loads fine. If I follow links to other parts of the Rails app but then come back to the page that has my app in it, the app is there for a split second and then disappears. If…
aarona
  • 35,986
  • 41
  • 138
  • 186
0
votes
0 answers

How do I resolve "undefined method `raw' for main:Object (NoMethodError)" when trying to use "rails-erb-loader" with Shakapacker?

I'm currently in the process of transitioning from Sprockets to Shakapacker, and I need to get my view helper files (.js.erb) to be compiled correctly. I've followed the instructions on the rails-erb-loader GH:…
JoshingYou
  • 113
  • 7
0
votes
0 answers

Can't get CKEditor5 build from source working with Shakapacker, Rails 6, Vue 3

I'm trying to implement CKEditor5 (building from source) into my application. I'm using Vuejs 3 frontend, Rails 6 backend, and Shakapacker.I haven't been able to find any documentation on CKEditor5 support for Shakapacker. I tried following the…
sb129
  • 11
  • 1
0
votes
2 answers

Bash command run from a variable - Shaka packaging problem

I am trying to package some videos on an ubuntu-ec2 machine using shaka packager and following official tutorial. So I have a list of multi resolution files i.e. original=x.mp4, converted are x_480p.mp4, x_360p.mp4 and so on. My lowest resolution is…
ashraf minhaj
  • 504
  • 2
  • 14
0
votes
0 answers

How to lavarge HTTP range requests in LL-DASH and nginx

I have a remote server setup that stores VOD (video on demand). I use Shaka player on the client side. I encoded the video as a Low Latency Dash using Shaka Streamer and I want Shaka Player to use HTTP range requests on the video parts. I also want…
Meir
  • 19
  • 3
0
votes
0 answers

Getting jquery related error while trying to upgrade from @rails/webpacker to shakapacker

I tried following the upgrade guide here: https://github.com/shakacode/shakapacker/blob/master/docs/v6_upgrade.md and the demo project here: https://github.com/shakacode/react_on_rails_demo_ssr_hmr When I started my app, I get the following errors…
Puliyur ranganath
  • 395
  • 1
  • 4
  • 8
0
votes
1 answer

Vue3 doesn't seem to be loaded in Rails 7 + shakapacker app

I created a new project for a shopify app with rails 7 and shakapacker. I want to use Vue components in my .slim files. The problem is that Vue doesn't seem to be loaded in my app, although I don't get any errors. Here is what I did: //…
cercxtrova
  • 1,555
  • 13
  • 30
0
votes
2 answers

shakapacker: Webpacker can't find subdir/image.png in manifest.json

I am trying to upgrade my app to Rails 7 and decided to upgrade shakapacker (aka webpacker 6). I like to have images in app/javascript/images organized into subdirectories but for some reason this whole structure gets flattened by…
Honza
  • 4,349
  • 2
  • 24
  • 40