react-native记录与错误汇总

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了react-native记录与错误汇总相关的知识,希望对你有一定的参考价值。

参考技术A unsupported top level event type dispatched androidthe development server renturned error code 500

8:56.249 29147-29196/com.nativeview E/ReactNativeJS: Module RCTEventEmitter is not a registered callable module (calling receiveTouches)

undefined is not an object (evaluating '_react2.PropTypes.bool') 导入错误

m.facebook.react.common.DebugServerException: The development server returned response error code: 500 入口错误

eactNativeJS: Invariant Violation: View config not found for name NKeyBoardTextInput

684-1733/com.nativeview E/ReactNativeJS: Error: NKeyBoardTextInput has no propType for native prop NKeyBoardTextInput.nativeID of native type String
If you haven't changed this prop yourself, this usually means that your versions of the native code and javascript code are out of sync. Updating both should make this error go away.

eJS: Error: NKeyBoardTextInput has no propType for native prop NKeyBoardTextInput.styleStandardFilePath of native type String
If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.

nknown:ReactNative: Exception in native call
com.facebook.react.common.DebugServerException: The development server returned response error code: 500

打开这个网址就能看到详细错误了。

type: "TransformError",
snippet: "�[0m �[90m 48 | �[39m �[90m 49 | �[39m _onChange(e)�[33m:�[39m �[31m�[1m>�[22m�[39m�[90m 50 | �[39m consone�[33m.�[39mdebug(�[32m"onChange:"�[39m)�[33m;�[39m �[90m | �[39m �[31m�[1m^�[22m�[39m �[90m 51 | �[39m �[90m 52 | �[39m �[90m 53 | �[39m render() �[0m",
lineNumber: 50,
column: 15,
filename: "D:\test\back-ji\NativeView\App.js",
errors: [

description: "SyntaxError in D:\test\back-ji\NativeView\App.js: D:/test/back-ji/NativeView/App.js: Unexpected token, expected : (50:15)",
filename: "D:\test\back-ji\NativeView\App.js",
lineNumber: 50

],
name: "SyntaxError",
message: "SyntaxError in D:\test\back-ji\NativeView\App.js: D:/test/back-ji/NativeView/App.js: Unexpected token, expected : (50:15)",
stack: "SyntaxError: D:/test/back-ji/NativeView/App.js: Unexpected token, expected : (50:15) �[0m �[90m 48 | �[39m �[90m 49 | �[39m _onChange(e)�[33m:�[39m �[31m�[1m>�[22m�[39m�[90m 50 | �[39m consone�[33m.�[39mdebug(�[32m"onChange:"�[39m)�[33m;�[39m �[90m | �[39m �[31m�[1m^�[22m�[39m �[90m 51 | �[39m �[90m 52 | �[39m �[90m 53 | �[39m render() �[0m at Parser.pp 8.flowParseTypeInitialiser (D:\test\back-ji\NativeView\node_modules\babylon\lib\index.js:4986:8) at Parser.pp 8.flowParsePrimaryType (D:\test\back-ji\NativeView\node_modules\babylon\lib\index.js:5660:19) at Parser.pp 8.flowParsePrefixType (D:\test\back-ji\NativeView\node_modules\babylon\lib\index.js:5795:17) at Parser.pp 8.flowParseIntersectionType (D:\test\back-ji\NativeView\node_modules\babylon\lib\index.js:5815:19)"


这里应该是复写onChange出现的错误

http://localhost:8081/debugger-ui/

rt.WebsocketJavaScriptExecutor$WebsocketExecutorTimeoutException: Timeout while connecting to remote debugger

依然是一样的道理打开
http://localhost:8081/index.delta?platform=android&dev=true&minify=false
查看是否有错误信息。
另外开发工具是最牛逼的,语法错误马上能查出来

Metro Bundler can't listen on port 8081
编译

markdown 与react-native-0.47.md的错误兼容性

# Error Message:

error: method does not override or implement a method from a supertype

## Correction

when this error occore you need update package.

## Example

package [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons/releases/tag/v4.3.0)

以上是关于react-native记录与错误汇总的主要内容,如果未能解决你的问题,请参考以下文章

MySQL错误代码速查表汇总

MYSQL数据库错误代码提示汇总

编程中遇到的Python错误和解决方法汇总整理

导入 3rd 方库时的 CommonJS 汇总插件语法错误,主要与“进程”有关

KVM使用错误汇总

Android开发错误——Android Studio中遇到过的错误问题与解决方案汇总