我收到以下消息:
获取项目:密钥为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上定义了密钥,为什么会出现此错误
感谢您的帮助