#Failed to construct 'ResizeObserver' please use the 'new' operator, this DOM object constructor...

1 messages · Page 1 of 1 (latest)

timber basin
#

I am getting this error and I have no idea what to do. Please help

Uncaught TypeError: Failed to construct 'ResizeObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
    at new r (modulepreload-polyfill:43:1)
    at polyfilled.js:44:33
    at c6 (react-dom.development.js:23150:26)
    at LYt (react-dom.development.js:24931:11)
    at RYt (react-dom.development.js:24891:9)
    at PYt (react-dom.development.js:24878:7)
    at VYt (react-dom.development.js:24866:3)
    at gGt (react-dom.development.js:27039:3)
    at M4 (react-dom.development.js:26984:14)
    at vGt (react-dom.development.js:26935:5)
lost imp
#

Post your relevant code / config to better diagnose

#

It says to use new.. are you using new? Or is this something you are not in control of in a dependency?

timber basin
#

Yeah, it in a dependency

#

Still not too sure how to get that fixed

lost imp
#

Any reason you can’t upgrade to vite 4?