将 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)