JQuery version conflict - How to handle?

Hello,

I am trying to implement a template bought from “themeforest”,template name “Katalaya”. The template comes with JQuery version “jQuery v2.1.1”. However Meteor by default has jQuery JavaScript Library v1.11.2. Looks like the Meteor 1.1.0.3 by default has the lower Jquery version.

Now how do we update the Meteor’s Jquery version to 2.1.1 ? Anyone done this before? Was there any other impact doing so?

Any help would be appreciated.

Jay

You can clone this core package into your local app’s packages folder and just update the jquery.js file in there.

Hi Lai,

Thank you did that and got the below error message. It looks like there are dependencies. Any idea how to resolve this?

=> Started proxy.
=> Errors prevented startup:

While selecting package versions:
error: No version of jquery satisfies all constraints: @=0.0.1, @=1.11.3_2

=> Your application has errors. Waiting for file change.

Jay

Solution

In /my_meter_project/packages/jquery/packages.js you must include a NAME

Package.describe({
summary: “Manipulate the DOM using CSS selectors”,
name: ‘jquery-localpackage’,
version: ‘3.2.1’
});

I called it jquery-localpackage

Now in your .meteor/packages, you can include a line:

jquery-localpackage

It should work 100%.

Confirmed working for me.