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

fails to load with activeadmin with use_webpacker = true #531

Closed
gsar opened this issue Apr 16, 2020 · 3 comments
Closed

fails to load with activeadmin with use_webpacker = true #531

gsar opened this issue Apr 16, 2020 · 3 comments

Comments

@gsar
Copy link

gsar commented Apr 16, 2020

activeadmin 2.7.0 has support for webpacker via the use_webpacker config option: activeadmin/activeadmin#5855

chartkick doesn't seem to load properly when using this configuration and following the notes in the chartkick README on webpacker setup. it just fails with Chartkick is not defined errors.

anyone able to get it working with activeadmin when using use_webpacker = true?

@ankane
Copy link
Owner

ankane commented Apr 17, 2020

Hey @gsar, that error indicates the page is missing the Chartkick JavaScript library. I'd make sure it's included in the appropriate pack. Please use Stack Overflow for additional help.

@ankane ankane closed this as completed Apr 17, 2020
@gsar
Copy link
Author

gsar commented Apr 18, 2020

thanks @ankane this turned out to be due to the vendor pack not being included. sadly there are no error messages being emitted by webpack(er) to identify the problem.

@ankane
Copy link
Owner

ankane commented Apr 18, 2020

Hey @gsar, thanks for following up. I'm not sure I understand the "vendor pack" part, but if you have time to explain the steps you took to get it working, it'd probably help future readers.

@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants