无法解析“node_modules/@react-navigation/core/src/favicon. ico”中的“use-latest-callback”,

wvt8vs2t  于 5个月前  发布在  React
关注(0)|答案(1)|浏览(54)

我用这个创建了一个新的项目:

npx create-expo-app@latest izmirferry --template

字符串
Navigation (TypeScript)选项
我在自己的设备上执行npm run start并扫描Expo Go上的QR码,但我得到一个错误:

Android Bundling failed 2397ms
Unable to resolve "use-latest-callback" from "node_modules/@react-navigation/core/src/PreventRemoveProvider.tsx"
Android Bundling failed 12782ms
Unable to resolve "use-latest-callback" from "node_modules/@react-navigation/core/src/PreventRemoveProvider.tsx"


这是一个新的项目。可能是什么原因?

enyaitl3

enyaitl31#

我刚刚得到了一个类似的错误,但来自React Native Paper,而不是来自React Navigation。


的数据
需要更多的研究才能知道错误的真正来源。临时修复是直接将软件包安装到开发依赖项中:
第一个月

相关问题