Trouble referencing highchart.js in Meteor application

喜你入骨 提交于 2019-12-12 04:49:47

问题


I am trying to use highcharts.js in a Meteor.js application but can't get past the initial referencing errors. My console is showing the following:

Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:3000/highcharts.js". localhost:9 Uncaught SyntaxError: Unexpected token < :3000/highcharts.js:1 Uncaught TypeError: Cannot set property 'innerHTML' of null highcharts.js:55

I have the highchart.js file in my client/lib directory and my highchart javascript code in my app.js file in the client directory. I have tried moving the highchart.js file to other locations, but it has dom references that are a problem when in server scope, so ended up in my client/lib directory.

Any thoughts on how to resolve this initial configuration/reference problem would be greatly appreciated!

来源:https://stackoverflow.com/questions/16637724/trouble-referencing-highchart-js-in-meteor-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!