首页 > 解决方案 > 错误: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 天,请帮我解决这个问题。提前致谢。

标签: javascriptreactjsreact-native

解决方案


我想删除 node_modules 文件夹并重新安装它会起作用。


推荐阅读