Skip to main content

Chartkick doesn't load on Heroku?

Gems / Libraries • Asked by Adrian DeGus

I setup a few charts in my app using Chartkick, which work fine in development but not in production. I have the same "Chartkick is not defined" issue as this guy https://github.com/ankane/chartkick/issues/347 but what fixed it for him didn't for me. I even tried possible fixes found on other SO threads, with no luck.

Anyone have the same problem on Heroku?


nm, found the fix. I had to include the chartkick js tags into the header of my application layouts while including my other js files at the very end of the body, to prevent breaking my wysiwyg editors.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.