Help me! CameraPreview Plugin in ionic 2 rc0


#1

Hi all,
I worked like document in http://ionicframework.com/docs/v2/native/camerapreview/, 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?


#2

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


#3

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


#4

@avilao

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


#5

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.