首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ReferenceError:找不到变量:要求博览会

ReferenceError:找不到变量:要求博览会
EN

Stack Overflow用户
提问于 2022-06-04 22:24:50
回答 1查看 937关注 0票数 0

我在世博会项目中遇到了这个错误。

代码语言:javascript
复制
ReferenceError: Can't find variable: require
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:4 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError
at node_modules/metro-runtime/src/polyfills/require.js:203:6 in guardedLoadModule
at http://192.168.1.228:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&minify=false:479020:3 in global code

我试过我能找到的修复方法,但没有一个对我有用。我试着清除缓存,创建一个新项目,复制和粘贴现有项目的文件,但仍然遇到同样的问题。任何帮助都非常感谢。

EN

回答 1

Stack Overflow用户

发布于 2022-06-05 07:33:46

你必须手动清除缓存,

打开项目folder.

  • Manually,删除所有节点模块。
  1. 然后使用终端中的npm install命令重新安装。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72503537

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档