chartjs / chartjs-chart-financial

Chart.js module for charting financial securities
MIT License
743 stars 199 forks source link

NodeJS cannot load minified file #40

Closed ryancottone closed 5 years ago

ryancottone commented 6 years ago

Hey. I've been toying with this all day to no avail so far. I've been using chartjs-node with no issues but I can't even load chartjs-chart-financial.

I've built the library and even used their pre-provided one, but whenever I require() the file, it throws errors such as:

These errors are on the loading of this file, not even the execution of the function.

I can't seem to figure out what's wrong and all my workarounds aren't getting anywhere. I feel like I'm missing something right in front of my face, too.

benmccann commented 5 years ago

At some point I'll publish this on npm, which should fix this issue. Closing as duplicate of https://github.com/chartjs/chartjs-chart-financial/issues/35

Techn1x commented 5 years ago

@DaJuukes I had the same issue with Chart.Ticks when I imported Chart.Financial.js directly. Turns out I was only using Chart.js 2.7.1, and this addon requires Chart.js 2.7.3