javascript - 错误:TypeError:无法读取未定义的属性(读取“transformFile”)反应原生
问题描述
我对 react-native 很陌生。我正在为本地反应设置环境。我按照 3、4 个教程来设置 react-native 环境,但我得到了这个错误。
error: TypeError: Cannot read properties of undefined (reading 'transformFile')
在控制台上
和
the development server return error with 500
在我运行 android 11 的 android 设备上。
我已经尝试了以下帖子中给出的所有方法。
https://fantashit.com/the-development-server-returned-response-error-code-500/
开发服务器返回响应错误代码:500 in react native
无法在 Bundler.transformFile 读取未定义的属性(读取“transformFile”)
我为此工作了超过 3 天,请帮我解决这个问题。提前致谢。
解决方案
我想删除 node_modules 文件夹并重新安装它会起作用。
推荐阅读
- java - 如何使用 Spring Data JPA 保存具有手动分配标识符的实体?
- javascript - 到达路由器导航更新 URL 但不是组件
- python-3.x - 如何在没有循环的情况下为阵列供电
- angular - Angular 8中的动态templateUrl
- python - 使用 h264 编码流式传输 openCV 帧
- git - 如果许多用户同时运行“git push”,这些命令是在服务器上顺序运行还是同时运行?
- json - 类型错误问题将对象列表从 Json 转换为类结构
- python - 如何使用 pd.read_csv 跳过/忽略 csv 文件中的跳过空字节?
- server - 如何获取默认的 Power BI 报表服务器品牌 zip 文件?
- python - Scrapy 不会在 response.css 上获取标记