Type Error: Cannot read properties of undefined (reading ‘products Model’)
at exports.getHome (E:ONLINE.SHOPcontrollershome.controller.js:20:31)
at Layer.handle [as handle_request] (E:ONLINE.SHOPnode_modulesexpresslibrouterlayer.js:95:5)
at next (E:ONLINE.SHOPnode_modulesexpresslibrouterroute.js:149:13)
at Route.dispatch (E:ONLINE.SHOPnode_modulesexpresslibrouterroute.js:119:3)
at Layer.handle [as handle_request] (E:ONLINE.SHOPnode_modulesexpresslibrouterlayer.js:95:5)
at E:ONLINE.SHOPnode_modulesexpresslibrouterindex.js:284:15
at Function.process_params (E:ONLINE.SHOPnode_modulesexpresslibrouterindex.js:346:12)
at next (E:ONLINE.SHOPnode_modulesexpresslibrouterindex.js:280:10)
at Function.handle (E:ONLINE.SHOPnode_modulesexpresslibrouterindex.js:175:3)
at router (E:ONLINE.SHOPnode_modulesexpresslibrouterindex.js:47:12enter image description here
hesham zero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.