Closed dimitrypo closed 6 years ago
Actually, I was able to fix that by adding those 2 lines in the root component:
import Chartkick from "chartkick";
window.Chartkick = Chartkick;
Is it OK way to fix the error and if it's suppose to work this way perhaps we can update readme file to state that?
Hey @dutgcom, thanks for reporting 👍 This error is fixed on Chartkick.js master. https://github.com/ankane/chartkick.js/commit/e9fb33cd91f6f75857af668152c1edcd5e978390
I'm having hard time running chartkick in rails app with webpacker and react installed through webpacker - all in their default configurations.
Error: This line:
let config = window.Chartkick.config;
Produces this error:
Backtrace:
Versions of chartkick and react-chartkick I'm using
chartkick - 2.2.4 react-chartkick - 0.1.5
I've tried latest version they also doesn't work
Code to reproduce:
Error happening when trying to render this component
Any clues what can be wrong or what can be checked?