React native 世博会:Can';找不到需要的变量
亲爱的社区: 我无法在网上找到解决问题的方法。我的错误如下:React native 世博会:Can';找不到需要的变量,react-native,expo,React Native,Expo,亲爱的社区: 我无法在网上找到解决问题的方法。我的错误如下: Can't find variable: require http://127.0.0.1:19001/node_modules/expo/AppEntry.bundle?platform=android&dev=true&minify=false&hot=false:5:24 global code@http://127.0.0.1:19001/node_modules/expo/AppEntry.bund
Can't find variable: require
http://127.0.0.1:19001/node_modules/expo/AppEntry.bundle?platform=android&dev=true&minify=false&hot=false:5:24
global code@http://127.0.0.1:19001/node_modules/expo/AppEntry.bundle?platform=android&dev=true&minify=false&hot=false:701:3
两天前它运行得很好,而且(显然)从那以后我没有做任何改变
你知道它从哪里来吗
我正在使用:
- 世博会~3.0.10
- “本地反应”https://github.com/expo/react-native/archive/sdk-38.0.0.tar.gz"
- 我试着清理缓存
- 我试着换目录
- 我尝试了
一个新的应用程序,导入前一个应用程序的源代码,安装依赖项,直到我运行expo init
,然后问题又出现了expo start-c
- 还在努力
- 将expo cli更新至最新版本
- 在另一个目录中初始化新的expo应用程序
- 复制/粘贴源代码
- 使用
而不是expo start-c
,以确保以下步骤中不涉及缓存expo start
- 逐个安装依赖项以确保没有问题
- 最后测试应用程序