superman66 / vue-highcharts

The Component of Vue 2.x for highcharts
https://codesandbox.io/s/jjyqvv0k13
MIT License
115 stars 48 forks source link

I'm getting a bunch of errors. Is it normal? #4

Closed cosbgn closed 6 years ago

cosbgn commented 7 years ago

Hi.

I've installed vue-highcharts just adding <script src="/static/js/vue-highcharts/dist/vue-highcharts.js"></script> to my html file, however I get many errors like webpack_require.

Check here: https://snag.gy/s9Xw4A.jpg

Is it normal? Why does it happen?

Also is there a documentation/guide on how to use this package with axios to plot some data I have in my database?

Thanks

willrpike commented 7 years ago

Hi

Based on your screenshot you are only getting one error, that's just a stack trace along with it.

The error you are getting is a highcharts specific error, it looks like you might be defining it twice on your page https://www.highcharts.com/errors/16

Hope this helps

cosbgn commented 7 years ago

Hi! I double checked and I have the script only once (i.e. once the vue-highcharts and once the highcharts). When I remove the highcharts the error goes away. Does the vue-highcharts includes the highchart library directly?

superman66 commented 7 years ago

@Cosbgn the vue-highcharts has included the highcharts library.