active_admin_datetimepicker
active_admin_datetimepicker copied to clipboard
Webpack direction
Hi i configured AA to work with webpacker but i'm seeing this at runtime.
2020-10-08T02:20:16.469618+00:00 app[web.1]: [bb1d92c0-719b-403e-9e75-5b55800db3ee] ActionView::Template::Error (Webpacker can't find jquery.xdan.datetimepicker.css in /app/public/packs/manifest.json. Possible causes:
2020-10-08T02:20:16.469618+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
2020-10-08T02:20:16.469619+00:00 app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
2020-10-08T02:20:16.469619+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
2020-10-08T02:20:16.469620+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
2020-10-08T02:20:16.469620+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
2020-10-08T02:20:16.469620+00:00 app[web.1]: Your manifest contains:
2020-10-08T02:20:16.469621+00:00 app[web.1]: {
2020-10-08T02:20:16.469621+00:00 app[web.1]: "active_admin.css": "/packs/css/active_admin-db07d18a.css",
2020-10-08T02:20:16.469621+00:00 app[web.1]: "active_admin.js": "/packs/js/active_admin-7fec0a7e08fd0c655301.js",
2020-10-08T02:20:16.469622+00:00 app[web.1]: "active_admin.js.map": "/packs/js/active_admin-7fec0a7e08fd0c655301.js.map",
2020-10-08T02:20:16.469622+00:00 app[web.1]: "active_admin/print.css": "/packs/css/active_admin/print-70585d69.css",
2020-10-08T02:20:16.469622+00:00 app[web.1]: "active_admin/print.js": "/packs/js/active_admin/print-698d01661c2d9661ce50.js",
2020-10-08T02:20:16.469623+00:00 app[web.1]: "active_admin/print.js.map": "/packs/js/active_admin/print-698d01661c2d9661ce50.js.map"
...
I did yarn add jquery-datetimepicker
but still same.
Do you have any direction ?
Regards
I've never worked with webpacker in Rails 🙁. Probably, @Fivell knows something about this?
I think https://github.com/platanus/activeadmin_addons/pull/319 should do it.
I'm having the same problem.
An NPM package with assets for this gem has been released, you can use it - @activeadmin-plugins/active_admin_datetimepicker
@gigorok, could you pls confirm that gem works with Webpack?