Im trying to get my camera to rotate with my mouse and im getting this error, can anyone help?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Thomasishere

https://i.imgur.com/F8l4i4c.png

:bust_in_silhouette: Reply From: umma
Camera.rotation.x

is incorrect, it should be cam.rotation.x =