bitIO / meteor-rickshaw

Rickshaw is a JavaScript toolkit for creating interactive time series graphs.
2 stars 2 forks source link

rickshaw doesn't work in production #3

Open semateos opened 10 years ago

semateos commented 10 years ago

Seems like rickshaw fails in meteor production, I think the meteor minimizer breaks it - not sure why - not really your problem so I know it's a long shot - but any help would be hugely appreciated.

Works fine in dev mode.

I made a very simple test project here: https://github.com/semateos/rickshaw-test

clone it and run with> mrt: works fine run with> mrt --production :does not work

I made a test deploy here: http://rickshaw-test.meteor.com/

If you check it out with console you can see the error:

Exception from Deps afterFlush function: TypeError: undefined is not a function at r.e.Graph.Renderer.Line.e.Class.create.defaults (http://rickshaw-test.meteor.com/f938e39ce6efc9a0b17d9737128bcd4da92846ca.js:12:23889)

That's all I've got for now -- am going to keep hammering on it.

K, thanks!

tukan commented 10 years ago

Have the same problem, everything ok in dev mode, but breaks in production with the same exception.

bitIO commented 10 years ago

It seems it's because of the way Meteor minimizes files. By now, my suggestion would be to use something like yepnope to dynamically load it.