Property 'camera' does not exist on type 'Navigator'.

navigator.camera.getPicture(function cameraSuccess(imageUri) 

 Cannot find name 'Camera'.   encodingType: Camera.EncodingType.JPEG,

ionic4 引入 cordova camera 插件报错 'camera' does not exist on type 'Navigator'.

 

解决办法:Cannot find name 'Camera'  ;

在文件中声明Camera  

ionic4 引入 cordova camera 插件报错 'camera' does not exist on type 'Navigator'.

Property 'camera' does not exist on type 'Navigator'.解决办法如下图:

ionic4 引入 cordova camera 插件报错 'camera' does not exist on type 'Navigator'.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2021-12-31
  • 2021-08-11
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案