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
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)
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 which can break things if your code or addons still rely on them
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.
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.