-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在h5的普通js文件当中无法直接使用Taro.getStorageSync等方法 #4303
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
怎么解决的 |
怎么解决的? |
一样,taro版本。2.2.1 |
你好 ,这个问题你是怎么解决的呢 |
问题描述
h5时在普通js文件当中使用Taro.getStorageSync等方法会报错
request.js?8aae:17 Uncaught (in promise) TypeError: _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.default.getStorageSync is not a
, 在page页面和组件页面中使用则正常复现步骤
期望行为
h5和小程序端能表现一致
报错信息
The text was updated successfully, but these errors were encountered: