【问题标题】:error: TypeError: Cannot read properties of undefined (reading 'transformFile') react native错误:TypeError:无法读取未定义的属性(读取“transformFile”)反应原生
【发布时间】:2021-12-26 02:15:29
【问题描述】:

我对 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/

The development server returned response error code: 500 in react native

Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile

我为此工作了 3 天以上,请帮我解决这个问题。 提前致谢。

【问题讨论】:

  • 您好,您的问题解决了吗?有同样的问题。

标签: javascript reactjs react-native


【解决方案1】:

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

【讨论】:

  • 试过没用
猜你喜欢
  • 1970-01-01
  • 2019-01-11
  • 2021-12-07
  • 1970-01-01
  • 1970-01-01
  • 2020-07-03
  • 2022-09-27
  • 2020-02-02
  • 2019-12-22
相关资源
最近更新 更多