Javascript standard built-in functions inside helpers

Hi, I was in process of add jquery plugin for jQCloud ( to create worldmap. I decided to create a package (and publish into atmosphere if it works). These are the steps I followed:

  1. Create package
    meteor create --package schandra:jqcloud2
  2. Modify package.js
    api.use(‘jquery@1.11.4’, ‘client’);
    api.imply(‘jquery@1.11.4’, ‘client’);
  3. Added package to my app using
    meteor add schandra:jqcloud2
  4. While building application using “meteor”, I receive JQuery reference error.
    Anything I’m missing?

W20160110-20:04:13.233(-8)? (STDERR) W20160110-20:04:13.235(-8)? (STDERR) /Users/santosh/.meteor/packages/meteor-tool/. W20160110-20:04:13.236(-8)? (STDERR) throw(ex); W20160110-20:04:13.236(-8)? (STDERR) ^ W20160110-20:04:13.236(-8)? (STDERR) ReferenceError: jQuery is not defined W20160110-20:04:13.236(-8)? (STDERR) at Package (jqcloud2.js:525:4) W20160110-20:04:13.236(-8)? (STDERR) at jqcloud2.js:525:12 W20160110-20:04:13.236(-8)? (STDERR) at jqcloud2.js:525:12 W20160110-20:04:13.237(-8)? (STDERR) at /Users/santosh/Documents/Learning/meteor/mylife/.meteor/local/build/programs/server/boot.js:242:10 W20160110-20:04:13.237(-8)? (STDERR) at Array.forEach (native) W20160110-20:04:13.237(-8)? (STDERR) at Function._.each._.forEach (/Users/santosh/.meteor/packages/meteor-tool/. W20160110-20:04:13.237(-8)? (STDERR) at /Users/santosh/Documents/Learning/meteor/mylife/.meteor/local/build/programs/server/boot.js:137:5 => Exited with code: 8

I think you have added jqcloud2 also to the server. Make sure that the second argument of the api.addFiles is ‘client’.

Thanks Sanjo. that worked!