React-native-reanimated:无法解析“./useValue"; [英] React-native-reanimated: Unable to resolve "./useValue"

查看:169
本文介绍了React-native-reanimated:无法解析“./useValue";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建 React Native 应用程序.我在终端上发现了一个错误说

I am trying to build a react native app. I have caught an error on the terminal saying

无法解析./useValue";来自node_modules\react-native-reanimated\src\Animated.js"

我重新安装了 react-native-reanimated 到预期的版本范围.

I reinstalled react-native-reanimated to the expected version range.

`您项目的某些依赖项与当前安装的 expo 包版本不兼容:

`Some of your project's dependencies are not compatible with currently installed expo package version:

  • react-native-reanimated - 预期版本范围:~1.9.0 - 实际安装版本:^1.10.1在安装正确版本的包之前,您的项目可能无法正常工作.要安装这些软件包的正确版本,请运行:expo install [package-name ...]`

因此,我按如下方式运行代码:npm install react-native-reanimated@1.9.0,但仍然遇到错误代码.

Thus, I run the code as follow: npm install react-native-reanimated@1.9.0, but still run into the error code.

我真的可以在这方面得到一些帮助.

I could realy use some help on this.

推荐答案

尝试卸载软件包 ==>关闭ide(所有实例)==>打开ide ==>再次安装软件包 ==>运行expo start -c"

try uninstalling the package ==> close ide (all instances) ==> open the ide ==> install the package again ==> run "expo start -c"

这篇关于React-native-reanimated:无法解析“./useValue";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆