react-native - 键是 AWSPinpoint_MYKEY 选项未定义
问题描述
我收到以下消息:
获取项目:键是 AWSPinpoint_"My_aws_mobile_analytics_app_id" 选项未定义
我在 aws-export.js 上的所有信息都与我的项目相匹配。
单击该消息后,来自 AsyncStorageCache.js:526 的消息来源说:
/**
* Get item from cache. It will return null if item doesn’t exist or it has been expired.
* If you specified callback function in the options,
* then the function will be executed if no such item in the cache
* and finally put the return value into cache.
* Please make sure the callback function will return the value you want to put into the cache.
* The cache will abort output a warning:
* If the key is invalid
* If error happened with AsyncStorage
*
* @param {String} key - the key of the item
* @param {Object} [options] - the options of callback function
* @return {Promise} - return a promise resolves to be the value of the item
*/
如果密钥是在我的 aws-export.js 上定义的,我不确定为什么会收到此错误
谢谢你的帮助
解决方案
推荐阅读
- python - 将 django 从 2.0.13 升级到 2.1.0 后,用户身份验证总是失败,包括 manage.py 更改密码
- android - ViewModel onChanged() 被无限调用
- php - 从多个用户sql php更新数据的效果
- javascript - 我在这里做错了什么?我得到提示,但在我做出选择后没有出现警报
- mysql - Spring Boot Hikari 连接泄漏
- r - 您可以遍历列和每列的唯一变量以在 R 中创建摘要吗?
- javascript - 如何防止 javascript 对象被转换为长度为 1 的对象数组?
- docker - Docker:用户上传图片
- asp.net-core - 在配置上找不到众所周知的错误
- angular - Angular Generic Form 动态下拉菜单