TW-Elements
TW-Elements copied to clipboard
Cannot read properties of undefined (reading 'getBoundingClientRect') in NextJS
I'm using NextJS and I put a dropdown button on a menu. When I run the app using yarn dev
, everything works fine. But if I build the app and run using yarn start
this error appears and the position of the dropdown is wrong.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect')