I'm using chartist on my website. On localhost, it's fine. Everything is working.
When i deploy the website, i get 2 errors when i want to draw pie chart.
Others charts are working well.
The errors are the following :
Uncaught TypeError: Cannot set property 'chartist' of null
It refers to that part of code : return m.chartist=y,y
Uncaught TypeError: Cannot read property 'series' of undefined
It refers to that part of code: for(var t=[],n=0;n<e.series.length;n++)t[n]="object"==typeof e.series[n] ...
The only differences between dev and prod version is that i concat my JS (not uglify).
I can't give you more detail so I know it won't be easy for you to help, but i'm lost I spent hours on this and i still haven't figure it out. Any help would be really appreciated!
Thanks
<script>tag you are using to include the chartist library. It's possible that you have a relative or absolute path that is only valid in dev 3)Only differences between dev and prod is that...Have you tried eliminating that difference? Try NOT minifying, uglifying, or modifying the code in anyway between dev and prod first and make sure that works. If it doesn't, then you'll know the problem isn't the minifying.