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!