0
votes

I am trying to use the lepozepo:cloudinary package, but I receive an error regarding this code.

$.cloudinary.config({
  cloud_name: "dx8pjibvk"
});

The error states: ReferenceError: $ is not defined

Jquery is installed. What can I do to fix this?

1

1 Answers

0
votes

Where exactly do you write that code? If it's in a lib folder it might be executed too early. Try this:

Meteor.startup(function(){
  if(Meteor.isClient){
    $.cloudinary.config({
      cloud_name: "dx8pjibvk"
    });
  }
});