incubator-weex-site icon indicating copy to clipboard operation
incubator-weex-site copied to clipboard

android 报错没有找到该模块

Open zhangweihong opened this issue 4 years ago • 4 comments

https://weex.apache.org/zh/docs/modules/storage.html#getallkeys D/CLog: reportJSException >>>> instanceId:33, exception function:createInstance, exception:Exception: ReferenceError: Can't find variable: storage

zhangweihong avatar May 15 '20 02:05 zhangweihong

如何复现

cnryb avatar May 15 '20 02:05 cnryb

var storage = weex.requireModule('storage')

------------------ 原始邮件 ------------------ 发件人: "任跃兵"<[email protected]>; 发送时间: 2020年5月15日(星期五) 上午10:16 收件人: "apache/incubator-weex-site"<[email protected]>; 抄送: "爱无界的痛"<[email protected]>; "Author"<[email protected]>; 主题: Re: [apache/incubator-weex-site] android 报错没有找到该模块 (#582)

如何复现

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zhangweihong avatar May 15 '20 02:05 zhangweihong

哪个环境、SDK是哪个版本、你的运行上下文是什么样的等等。
根据你这行简单的代码在playground中我是无法复现的。

cnryb avatar May 15 '20 02:05 cnryb

这个问题解决了,有个新问题 貌似vue生命周期函数 怎么每次都会调用2次啊

------------------ 原始邮件 ------------------ 发件人: "任跃兵"<[email protected]>; 发送时间: 2020年5月15日(星期五) 上午10:25 收件人: "apache/incubator-weex-site"<[email protected]>; 抄送: "爱无界的痛"<[email protected]>; "Author"<[email protected]>; 主题: Re: [apache/incubator-weex-site] android 报错没有找到该模块 (#582)

哪个环境、SDK是哪个版本、你的运行上下文是什么样的等等。 根据你这行简单的代码在playground中我是无法复现的。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zhangweihong avatar May 15 '20 08:05 zhangweihong