ankane/chartkick

fails to load with activeadmin with use_webpacker = true

gsar opened this issue · 3 comments

gsar commented

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?

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.

gsar commented

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.

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.