# Were upgrading jquery from v1.11.3 to v3.4.1 and were getting buildFragment error using canjs version 2.2.5

**URL:** <https://forums.bitovi.com/t/were-upgrading-jquery-from-v1-11-3-to-v3-4-1-and-were-getting-buildfragment-error-using-canjs-version-2-2-5/1097>\
**Category:** CanJS\
**Created:** [December 18, 2019, 10:29pm UTC](https://forums.bitovi.com/t/were-upgrading-jquery-from-v1-11-3-to-v3-4-1-and-were-getting-buildfragment-error-using-canjs-version-2-2-5/1097 "2019-12-18T22:29:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smoothlikejazz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/smoothlikejazz/32/461_2.png) [@smoothlikejazz](https://forums.bitovi.com/u/smoothlikejazz)\
**Post date:** [December 18, 2019, 10:29pm UTC](https://forums.bitovi.com/t/were-upgrading-jquery-from-v1-11-3-to-v3-4-1-and-were-getting-buildfragment-error-using-canjs-version-2-2-5/1097/1 "2019-12-18T22:29:40Z")

</div>

We have a huge application built on canjs with more than 250 screens

Current jQuery Version: v1.11.3  
Need to upgrade JQuery to: v3.4.1  
Our current canjs version: 2.2.5  
Our current steal version: 0.11.4

1. Which version of canjs has fix for $buildFragment  
according to this post [https://github.com/canjs/canjs/pull/2177](https://github.com/canjs/canjs/pull/2177) buildFragment is fixed in this version we belive, but currently still yields the error after upgrading to 2.3.28

2. Which canjs version is the best compatible version for jquery latest version of v3.4.1 which also has the smallest migration path.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![cherif\_b](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/cherif_b/32/31_2.png) [@cherif\_b](https://forums.bitovi.com/u/cherif_b)\
**Post date:** [December 20, 2019, 5:09pm UTC](https://forums.bitovi.com/t/were-upgrading-jquery-from-v1-11-3-to-v3-4-1-and-were-getting-buildfragment-error-using-canjs-version-2-2-5/1097/2 "2019-12-20T17:09:16Z")

</div>

> [@smoothlikejazz](#):
>
> buildFragment

Hi @smoothlikejazz, can you give more details about what the problem is?

It would be great if you can post a CodePen (or any simplified example) with the issue.

---

<div class="post-metadata">

**Author:** ![arjunballa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/arjunballa/32/84_2.png) [@arjunballa](https://forums.bitovi.com/u/arjunballa)\
**Post date:** [December 20, 2019, 11:54pm UTC](https://forums.bitovi.com/t/were-upgrading-jquery-from-v1-11-3-to-v3-4-1-and-were-getting-buildfragment-error-using-canjs-version-2-2-5/1097/3 "2019-12-20T23:54:46Z")

</div>

@cherif_b It is our mistake. We upgraded canjs to 2.3.28 but we were loading 2.2.5 version of `can/util/jquery/jquery.js` and it was giving $.buildFragment error.  
We loaded the 2.3.28 of `can/util/jquery/jquery.js` and it worked.

canjs 2.3.28 is directly compatible with jquery 3.4.1 without making any changes to application.

---

<div class="post-metadata">

**Author:** ![cherif\_b](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/cherif_b/32/31_2.png) [@cherif\_b](https://forums.bitovi.com/u/cherif_b)\
**Post date:** [December 21, 2019, 12:24am UTC](https://forums.bitovi.com/t/were-upgrading-jquery-from-v1-11-3-to-v3-4-1-and-were-getting-buildfragment-error-using-canjs-version-2-2-5/1097/4 "2019-12-21T00:24:05Z")

</div>

Awesome! We are glad that it worked for you!  
Thank you for your feedback.
