Skip to content

Webpack direction #69

@kwent

Description

@kwent

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

Activity

workgena

workgena commented on Oct 8, 2020

@workgena
Contributor

I've never worked with webpacker in Rails 🙁. Probably, @Fivell knows something about this?

kwent

kwent commented on Oct 28, 2020

@kwent
Author

I think platanus/activeadmin_addons#319 should do it.

MH4GF

MH4GF commented on Apr 5, 2021

@MH4GF

I'm having the same problem.

Skumring

Skumring commented on Apr 16, 2022

@Skumring
Contributor

An NPM package with assets for this gem has been released, you can use it - @activeadmin-plugins/active_admin_datetimepicker

workgena

workgena commented on Dec 27, 2023

@workgena
Contributor

@gigorok, could you pls confirm that gem works with Webpack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kwent@workgena@Skumring@MH4GF

        Issue actions

          Webpack direction · Issue #69 · activeadmin-plugins/active_admin_datetimepicker