Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when using esbuild #140

Open
caplod opened this issue Jul 10, 2024 · 0 comments
Open

error when using esbuild #140

caplod opened this issue Jul 10, 2024 · 0 comments

Comments

@caplod
Copy link

caplod commented Jul 10, 2024

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant