小编Shi*_*sht的帖子

无法解析模块@react-native-async-storage/async-storage

将 aws-amplify 添加到项目后出现此错误,根据文档完成了 aws-amplify 的设置,然后 pod install 和 react-native run-ios 我还尝试更改导入语句,如下面的建议中所述错误,还是不行,先谢谢了。

  node_modules/@aws-amplify/core/node_modules
  node_modules
  ../node_modules

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
  11 |  * and limitations under the License.
  12 |  */
> 13 | import AsyncStorage from '@react-native-async-storage/async-storage';
     |                           ^
  14 | var MEMORY_KEY_PREFIX = '@MemoryStorage:';
  15 | var …
Run Code Online (Sandbox Code Playgroud)

react-native aws-amplify

3
推荐指数
1
解决办法
7312
查看次数

标签 统计

aws-amplify ×1

react-native ×1