natjs / nat

A powerful kit for adding native functionalities to your weex app.
http://natjs.com
282 stars 25 forks source link

Unhandled promise rejection TypeError:undefined is not an object(evaluating 'camera.captureImage') #27

Closed baixiaodu closed 6 years ago

baixiaodu commented 6 years ago

environment: window: 10 node 8.9.3 npm 5.6 weexpack 1.1.1 natjs 0.1.5

what's wrong with me??? /plugins.json image

.weex_plugin.json image

index.vue

image

acathur commented 6 years ago

@baixiaodu maybe you should handle the error condition (err), it seems you've got an error then ret is undefined