highcharts / highcharts-meteor

Meteor wrapper for Highcharts
2 stars 1 forks source link

web app crashes after adding this package to meteor project #4

Open bogere opened 8 years ago

bogere commented 8 years ago

THank you for this great charting library... i dont why Iam getting this error when i meteor add this package to my web app. Iam using meteor version.... METEOR@1.2.1 `Started proxy.
=> Errors prevented startup:

While reading package from /home/goldsoft25/Desktop/software/meteor/wekan-gold/packages/highcharts-container: package.js:11: Unexpected token (11:0)

=> Your application has errors. Waiting for file change. => Started MongoDB.
` Even when i try to meteor list.... it also crashes without showing meteor list.. iam u

bogere commented 8 years ago

I hope the closed issues are going to solve my problem

pawelfus commented 8 years ago

I see you closed the issue. Were you able to fix the errors? Or is it closed by accident?

bogere commented 8 years ago

somehow i closed after managing to load the highchart library on the client... meteor/client/lib folder.. so i wanted your help on how to use it as meteor package... where u use in that project. iam using meteor version 1.2.1 To use Highcharts in Meteor 1.3+, install package from npm:

meteor npm install --save highcharts Now, include Highcharts in your project: var Highcharts = require(‘highcharts'); so the problem is ReferenceError: require is not defined...

pawelfus commented 8 years ago

Meteor 1.2.1 does't support NPM packages, so you need to install highcharts-meteor package from atmosphere, installation:

> meteor add highcharts:highcharts-meteor

Then configure the package as described here.

chees commented 8 years ago

I have the same problem as @bogere After adding the package it created a packages/highcharts-container directory with 3 corrupted files. After I manually edited those to look like the postfix, prefix and packageJS functions in https://github.com/highcharts/highcharts-meteor/blob/master/highcharts-builder.js#L58 it seemed to work a bit.

pawelfus commented 8 years ago

Looks like something changed with building a package on the Meteor side (?). Should be fixed, thank you for pointing this out! Could you update the package? It may be necessary to remove highcharts-container folder from packages.