我刚刚升级了所有的react原生应用程序包,现在在Xcode中运行应用程序时出现以下错误:
INFO : BSG_KSCrashReport.c (1513): void bsg_kscrashreport_writeStandardReport(BSG_KSCrash_Context *const, const char *const): Writing crash report to /Users/Library/Developer/CoreSimulator/Devices/123/data/Containers/Data/Application/123/Library/Caches/KSCrashReports/foo/foo-123.json
2021-06-23 15:18:32.196550+1000 foo[12206:1933872] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Error: Minified Redux error #12; visit https://redux.js.org/Errors?code=12 for the full message or use the non-minified dev environment for full errors. ', reason: 'Unhandled JS Exception: Error: Minified Redux error #12; visit https://redux.js.org/Errors?code=12 for the full message or use the non-minified dev environment for full errors..., stack:
Redux错误12状态:
The slice reducer for key "" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.
我用的是重赛。如果我查看所有的generateModel函数,它们都提供了一个有效的initialState。
我可以从哪里开始调试呢?
发布于 2021-07-04 23:45:03
我是一个复赛维护者,如果你想在复赛复制品中提供一个有效的复现复制品,或者在这里,我们很乐意帮助你。
从v1到v2,Rematch内部发生了很大变化,对终端用户来说变化不大,但可能有一些东西需要调整,才能让它再次正常运行:)
https://stackoverflow.com/questions/68093968
复制相似问题