Uncaught TypeError: Cannot read properties of null (reading 'addEventListener') at index-c858d328.js:3242:39406

my project in locallhost work fine but when I upade my site manully , I get this error Uncaught TypeError: Cannot read properties of null (reading ‘addEventListener’)
at index-c858d328.js:3242:39406
at Array.forEach ()
at Object.connect (index-c858d328.js:3242:39361)
at onCreated (index-c858d328.js:3242:40875)
at index-c858d328.js:3242:32036
at ds (index-c858d328.js:3238:22371)
at Yp (index-c858d328.js:3238:29670)
at qp (index-c858d328.js:3238:29520)
at Gm (index-c858d328.js:3238:29024)
at zm (index-c858d328.js:3238:41395)

@salehalrsh Please see response here