Camera priority error

Hey
I’m getting this error whenever I try to create a callback event in cocos 3. 6 version
" [Window] Cannot read property ‘cameraPriority’ of null"

Can you tell me the code that creates the callback event?

You can check if the node to which you bind the callback has a UITransform component mounted