繁体   English   中英

未能构建 JavaScript 捆绑包。 无法解析模块。/reanimated2

[英]Failed building JavaScript bundle. Unable to resolve module ./reanimated2

我有一个问题阻止我继续我的反应性项目:你可以给我一些想法吗? 该程序适用于我伴侣的环境,但不适用于我家。

Failed building JavaScript bundle.
Unable to resolve module ./reanimated2 from /home/salami/Documents/COURS_PARIS_SACLAY/semestre6/projet_GLA/OC_FullStack/Eugloh_frontend/node_modules/react-native-reanimated/src/Animated.js: 

None of these files exist:
  * node_modules/react-native-reanimated/src/reanimated2(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  * node_modules/react-native-reanimated/src/reanimated2/index(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
> 1 | import { Image, ScrollView, Text, View } from 'react-native';
  2 | import Easing from './Easing';
  3 | import AnimatedClock from './core/AnimatedClock';
  4 | import AnimatedValue from './core/AnimatedValue';
  • 检查您是否使用react-native-reanimated v1 而不是 v2
  • 卸载并再次安装react-native-reanimated v1
  • 运行npx react-native start --reset-cache之后npx react-native run-androidnpx react-native run-ios

资源

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM