gpt4 book ai didi

reactjs - 未找到导出 'ComposedGestureType'(重新导出为 'ComposedGesture')

转载 作者:行者123 更新时间:2023-12-05 08:04:03 26 4
gpt4 key购买 nike

编译项目时出现这个错误

"./node_modules/react-native-gesture-handler/lib/module/index.js
"export 'ComposedGestureType' (reexported as 'ComposedGesture') was not found in './handlers/gestures/gestureComposition' ".

我真的不知道该怎么办。我有这些依赖

  "dependencies": {
"@react-navigation/native": "^6.0.6",
"@react-navigation/native-stack": "^6.2.5",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-native-gesture-handler": "^2.1.0",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^3.10.1",
"react-native-web": "^0.17.5",
"react-navigation": "^4.4.4",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
}

最佳答案

已在新提交中修复,但尚未在 npm 中修复。目前解决这个问题的唯一方法是检查 github 中的提交。

"react-native-gesture-handler": "https://github.com/software-mansion/react-native-gesture-handler#62e9eb66bced3b4c55042399d761baee7d961140",

解决方案和问题单的链接在这里:https://github.com/software-mansion/react-native-gesture-handler/issues/1786#issuecomment-1010288271

关于reactjs - 未找到导出 'ComposedGestureType'(重新导出为 'ComposedGesture'),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70295686/

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