0

我刚刚升级了所有的 react native 应用程序包,现在在 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 函数,它们都提供了一个有效的初始状态。

我可以从哪里开始寻找调试呢?

4

1 回答 1

0

我是 Rematch 维护者,如果您想在 Rematch repo 或这里提供有效的复制 repo,我们将很乐意提供帮助。

从 v1 到 v2,Rematch 在内部发生了很大变化,对于最终用户来说并没有太大变化,但可能需要调整一些东西才能让它再次正常运行 :)

于 2021-07-04T23:45:02.697 回答