gpt4 book ai didi

reactjs - 错误 : Unable to resolve module ./Easing from node_modules\react-native-reanimated\src\Animated.js

转载 作者:行者123 更新时间:2023-12-04 03:28:23 25 4
gpt4 key购买 nike

我是从 reanimated@1.9.0 迁移过来的和 react-native-gesture-handler@1.9.0

"react-native-gesture-handler": "^1.10.3",
"react-native-reanimated": "^2.1.0",
当我打开我的应用程序时,出现以下错误:
error: Error: Unable to resolve module ./Easing from C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\react-native-reanimated\src\Animated.js:

None of these files exist:
* node_modules\react-native-reanimated\src\Easing(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.svg|.native.svg|.svg)
* node_modules\react-native-reanimated\src\Easing\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.svg|.native.svg|.svg)
> 1 | import { Image, ScrollView, Text, View } from 'react-native';
2 | import createAnimatedComponent from './createAnimatedComponent';
3 | import {
4 | addWhitelistedNativeProps,
at ModuleResolver.resolveDependency (C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:211:15)
at DependencyGraph.resolveDependency (C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\metro\src\node-haste\DependencyGraph.js:413:43)
at Object.resolve (C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\metro\src\lib\transformHelpers.js:317:42)
at resolve (C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:629:33)
at C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:645:26
at Array.reduce (<anonymous>)
at resolveDependencies (C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:644:33)
at C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:329:33
at Generator.next (<anonymous>)
at asyncGeneratorStep (C:\Users\shiva\Desktop\RadioTangyStuff\radiotangy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:137:24)
我在我的项目中搜索过,我没有导入 Easing任何地方(至少我认为!)
我也看到了 migrating guide from Reanimated 1.x
任何帮助将不胜感激!

最佳答案

这解决了我的问题:

yarn start  --reset-cache

关于reactjs - 错误 : Unable to resolve module ./Easing from node_modules\react-native-reanimated\src\Animated.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67256733/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com