natjs / nat

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

reportJSException >>>> instanceId:2, exception function:callJS, exception:Exception: TypeError: null is not an object (evaluating 't.path') #14

Open wazsq opened 6 years ago

wazsq commented 6 years ago

require('natjs').camera.captureImage({}, (err, ret) => { this.turl_path = ret.path; });

这是我的js代码,第一次触发这个事件的时候正常打开照相机,但是this.url获取不到,之后再触发这个事件,报如下错误。

reportJSException >>>> instanceId:2, exception function:callJS, exception:Exception: TypeError: null is not an object (evaluating 't.path') (global function):5:828 (global function):5:2515 f@(weex framework):3:30852 (weex framework):3:31099 forEach@[native code] d@(weex framework):3:30998 (weex framework):8:22648

拜托大佬解答

acathur commented 6 years ago

目测没有安装camera插件,请提供更完整的信息

snrtbnc commented 6 years ago

please speak english . all over the world try to understand what is going on. Not only chines or americans