rails / mission_control-jobs

Dashboard and Active Job extensions to operate and troubleshoot background jobs
MIT License
611 stars 71 forks source link

error when using esbuild #140

Closed caplod closed 2 weeks ago

caplod commented 4 months ago

I am using esbuild together with jsbundling-rails to bundle the js files. I added this to my routes.rb

mount MissionControl::Jobs::Engine, at: "/jobs"

when I access localhost:3000/jobs I get the following error:

Sprockets::Rails::Helper::AssetNotPrecompiledError in MissionControl::Jobs::Queues#index 

Asset `controllers/application.js` was not declared to be precompiled in production.
Declare links to your assets in `app/assets/config/manifest.js`.

  //= link controllers/application.js

and restart your server

in my manifest.js I have

//= link_tree ../images
//= link_tree ../builds

How can I run Mission Control Jobs without importmaps ?

rosa commented 2 weeks ago

@caplod, is this still happening with the last released version? 0.4.0.

caplod commented 2 weeks ago

@rosa

now it is working fine

rosa commented 2 weeks ago

Awesome! Thanks a lot for confirming!