pablojim / highcharts-ng

AngularJS directive for Highcharts
MIT License
1.73k stars 463 forks source link

Module not defined error #578

Closed Pcummings closed 7 years ago

Pcummings commented 7 years ago

Hi when upgrading from 1.0.1 to the latest version I'm getting these errors: Uncaught ReferenceError: module is not defined at highcharts-ng.js:20 at highcharts-ng.js:153

Preventing the page from loading.

I'm running AngularJS 1.6 on Node 7

Pcummings commented 7 years ago

Downgrading to 1.0.1 again fixes the issue

pablojim commented 7 years ago

Load highcharts.js before you load highcharts-ng.js. Let me know if this fixes your issue.

Please add a jsfiddle showing the problem if not.

nagyf commented 7 years ago

Load highcharts.js before you load highcharts-ng.js. Let me know if this fixes your issue.

I had the same problem, this fixed it.