开发服务器返回响应错误代码:500 in react-native [英] The development server returned response error code: 500 in react-native
问题描述
我正在用我的 frd 制作 react-native 应用程序.所以我得到了我的 frd 第一次制作的代码,我想打开我的电脑.我想我设置了所有内容并在开发菜单中进行了 tcp:8081 设置.但是在启动 react-native 打包程序后我收到了错误消息.我使用真正的电话设备.
I'm making react-native app with my frd. So I got the code my frd first made and I wanted to open my computer. I think I set everything and did tcp:8081 setting in dev menu. but I got error message after started react-native packager. I use real phone device.
请帮帮我.
[2016-11-25 17:13:55] <START> Initializing Packager
[2016-11-25 17:13:55] <START> Building in-memory fs for JavaScript
[2016-11-25 17:13:56] <END> Building in-memory fs for JavaScript (1172ms)
[2016-11-25 17:14:00] <START> Building Haste Map
[2016-11-25 17:14:01] <END> Building Haste Map (668ms)
[2016-11-25 17:14:01] <END> Initializing Packager (5738ms)
[2016-11-25 17:14:26] <START> Requesting bundle url: /index.android.bundle?platform=android&dev=true&hot=false&minify=false
[2016-11-25 17:14:26] <START> Transforming modules
推荐答案
在线搜索 react-native __dev__ not define
带回了很多结果和可能的解决方案.
Searching for react-native __dev__ not define
online brings back a lot of results and possible solutions.
这是一个非常受欢迎的:
Here is one which is quite popular:
https:///github.com/facebook/react-native/issues/7814#issuecomment-222975165
- 在我的 package.json 中输入 'babel-preset-react-native' - 使用此作为参考: https://www.npmjs.com/package/babel-preset-react-native
https://github.com/facebook/react-native/issues/7814#issuecomment-222975165
- enter 'babel-preset-react-native' in my package.json - use this for reference: https://www.npmjs.com/package/babel-preset-react-native
这篇关于开发服务器返回响应错误代码:500 in react-native的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!