Help me! CameraPreview Plugin in ionic 2 rc0


Hi all,
I worked like document in, but it’s not work.

let cameraRect: CameraPreviewRect = {
x: 100,
y: 100,
width: 200,
height: 200
Cannot find name ‘CameraPreviewRect’.

Anyone worked with this plugin?


I have the same problem. Did you figure out it?


Guys I have the same problem. You managed to solve it?



Now it should to work.
Did you follow these instructions? There is also the example.


Hey, I came across your question. I also had the same problem. I looked around and I found this solution.

try installing

npm install --save @ionic-native/camera-preview

This works.