1

在我的电子应用程序的开发版本中,我没有收到任何错误。但是一旦我尝试在生产中运行它,我的 localStorage 数据似乎就有问题。知道如何调试吗?

堆栈跟踪:

Uncaught Error: [mobx-state-tree] No matching type for union ({ id: identifier?; date: Date?; completed: boolean?; stepResults: { id: identifier; step: ((reference((ClickStep | DragStep)) | undefined?) | undefined?); matches: { position: { x: number; y: number }; value: number; templateSize: { width: number; height: number } }[]?; frameFilePath: (string | undefined?); success: boolean?; message: (string | undefined?) }[]?; deviceData: ({ abi: string; sdk: string; osVersion: string; size: string; serial: (string | undefined?); name: (string | undefined?); brand: (string | undefined?) } | undefined?) } | undefined?)
    at We (mobx-state-tree.module.js:2715)
    at t.instantiate (mobx-state-tree.module.js:4688)
    at mobx-state-tree.module.js:4085
    at mobx-state-tree.module.js:4217
    at Array.forEach (<anonymous>)
    at t.forAllProps (mobx-state-tree.module.js:4217)
    at t.initializeChildNodes (mobx-state-tree.module.js:4084)
    at new t (mobx-state-tree.module.js:1243)
    at xe (mobx-state-tree.module.js:2500)
    at t.instantiate (mobx-state-tree.module.js:4076)
4

1 回答 1

2

弄清楚了。我试图以过时的格式加载持久数据。因为我迁移后没有持久化数据。

于 2019-09-06T11:10:29.007 回答