首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >如何修复Redux错误:最小化Redux错误#12

如何修复Redux错误:最小化Redux错误#12
EN

Stack Overflow用户
提问于 2021-06-23 05:28:45
回答 1查看 415关注 0票数 0

我刚刚升级了所有的react原生应用程序包,现在在Xcode中运行应用程序时出现以下错误:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
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状态:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
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。

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

EN

回答 1

Stack Overflow用户

发布于 2021-07-04 23:45:03

我是一个复赛维护者,如果你想在复赛复制品中提供一个有效的复现复制品,或者在这里,我们很乐意帮助你。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68093968

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文