# Upgraded the ember 2.7 to 2.16

**URL:** <https://discuss.emberjs.com/t/upgraded-the-ember-2-7-to-2-16/20511>\
**Category:** Questions\
**Created:** [May 23, 2024, 7:12am UTC](https://discuss.emberjs.com/t/upgraded-the-ember-2-7-to-2-16/20511 "2024-05-23T07:12:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asif](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/asif/32/18350_2.png) [@Asif](https://discuss.emberjs.com/u/Asif)\
**Post date:** [May 23, 2024, 7:12am UTC](https://discuss.emberjs.com/t/upgraded-the-ember-2-7-to-2-16/20511/1 "2024-05-23T07:12:00Z")

</div>

upgraded the project using ember-cli-update after this i run the code and getting the error currently using node version 10 also I’m using the bower packages

```auto
TypeError: Cannot read properties of undefined (reading 'prototype')
    at Object.initialize (dom-helper-patches.js:12:1)
    at engine.js:87:1
    at Vertices.each (dag-map.js:188:1)
    at Vertices.walk (dag-map.js:117:1)
    at DAG.each (dag-map.js:62:1)
    at DAG.topsort (dag-map.js:68:1)
    at Class._runInitializer (engine.js:109:1)
    at Class.runInitializers (engine.js:74:1)
    at Class._bootSync (application.js:390:1)
    at Class.domReady (application.js:344:1)

```

---

<div class="post-metadata">

**Author:** ![dknutsen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/dknutsen/32/16471_2.png) [@dknutsen](https://discuss.emberjs.com/u/dknutsen)\
**Post date:** [May 23, 2024, 3:11pm UTC](https://discuss.emberjs.com/t/upgraded-the-ember-2-7-to-2-16/20511/2 "2024-05-23T15:11:31Z")

</div>

There’s a lot going on here and this is going to be a rough upgrade path. Let’s take things one step at a time. First we probably need some more information though.

> at engine.js Are you using ember-engines? It looks like it from this but not sure

> dag-map.js where does dag-map come from? is it from a third party package or is that part of your app code?

General questions:

- have you updated your dependencies to the newest versions that are compatible with your ember versions? this always helps a lot when upgrading
- have you cleared any deprecation warnings? there were a number of things removed in [the middle of the 2.x versions](https://deprecations.emberjs.com/v2.x/) which can break things if your code or addons still rely on them

---

<div class="post-metadata">

**Author:** ![Asif](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/asif/32/18350_2.png) [@Asif](https://discuss.emberjs.com/u/Asif)\
**Post date:** [May 24, 2024, 6:23am UTC](https://discuss.emberjs.com/t/upgraded-the-ember-2-7-to-2-16/20511/3 "2024-05-24T06:23:32Z")

</div>

Yes I’m using ember-engines.

dag-map.js is third party package

```auto
jQuery.Deferred exception: Cannot read properties of undefined (reading 'prototype') TypeError: Cannot read properties of undefined (reading 'prototype')
    at Object.initialize (http://192.168.3.186:4200/assets/frontend-upgrade.js:8310:32)
    at http://192.168.3.186:4200/assets/vendor.js:23524:23
    at Vertices.each (http://192.168.3.186:4200/assets/vendor.js:22185:17)
    at Vertices.walk (http://192.168.3.186:4200/assets/vendor.js:22114:18)
    at DAG.each (http://192.168.3.186:4200/assets/vendor.js:22059:28)
    at DAG.topsort (http://192.168.3.186:4200/assets/vendor.js:22065:18)
    at Class._runInitializer (http://192.168.3.186:4200/assets/vendor.js:23546:13)
    at Class.runInitializers (http://192.168.3.186:4200/assets/vendor.js:23511:12)
    at Class._bootSync (http://192.168.3.186:4200/assets/vendor.js:23056:14)
    at Class.domReady (http://192.168.3.186:4200/assets/vendor.js:23010:12)

```

jQuery has installed in bower dependencies.

yes first I upgraded from 2.7 to 2.12 and cleared all deprecations. next I tried to move from 2.12 to 2.16 , still getting the same error.

---

<div class="post-metadata">

**Author:** ![Mikek2252](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mikek2252/32/18336_2.png) [@Mikek2252](https://discuss.emberjs.com/u/Mikek2252)\
**Post date:** [May 27, 2024, 12:58pm UTC](https://discuss.emberjs.com/t/upgraded-the-ember-2-7-to-2-16/20511/4 "2024-05-27T12:58:59Z")

</div>

I can’t completely remember but i think around this time the way jquey got bundled within ember-source i think so what is likely happening is you have a package that is extending jquery but you are using the ember jquery instead, as this is happening in the initalizier i think you may need to check the import to make sure you are using the correct version.
