So, yes. You’re referring to Camera
, but it’s a reference to nothing. There is no Camera
anywhere in your code.
If you’re taking the particular approach by using the Pro CameraView
, then you should add a CameraView
in your UX markup code, and give it a ux:Name
that you could then refer to from JavaScript. Here’s the docs on CameraView.
Why not take a look at the example that was linked to from the other forum thread that I suggested you take the solution from? There you can see how it’s being referred to from JS, and how it was added in UX.