Highstocks not working with Meteor 1.3.2.4


#1

Hi,

I am using Highcharts in my project and I have added it like ‘Meteor npm install --save highcharts’

Example.js

    import Highcharts from 'highcharts';
    import { Template } from 'meteor/templating';
    import { stock_data } from '../modules/stock_data.js'
    import './example.html';

    function buildStockLocal() {
        $('#highcharts-container').highcharts('StockChart', {
            rangeSelector: {
                selected: 1
            },

            title: {
                text: 'AAPL Stock Price'
            },

            series: [{
                name: 'AAPL',
                data: stock_data,
                tooltip: {
                    valueDecimals: 2
                }
            }]
        });
    }

    Template.example.onRendered(function(){
        buildStockLocal();
    });

ERROR
TypeError: x[(intermediate value)(intermediate value)(intermediate value)] is not a constructor
at jQuery.D.jQuery.fn.highcharts (highcharts.js:29)

Can anyone suggest, how to get highstocks working with Meteor 1.3.2.4.

Thank you!