Your console is telling you that you are not passing an array to raycaster.intersectObjects
.
If you must raycast only with a single object, either do raycaster.intersectObject
(with no “s”)
either do raycaster.intersectObjects( [yourSingleObject] )
See the difference here : https://threejs.org/docs/#api/en/core/Raycaster.intersectObject