我收到此错误,但我不知道为什么。我正在运行 mobx 状态树(3.2.4)
:8080/main.js:52013 Uncaught (in promise) Error: [mobx-state-tree] Error while converting `""` to `AnonymousModel[]`:
value `""` is not assignable to type: `AnonymousModel[]` (Value is not an array).
at fail (:8080/main.js:52013)
at typecheck$$1 (:8080/main.js:51692)
at typecheckInternal$$1 (:8080/main.js:51678)
at ArrayType$$1../node_modules/mobx-state-tree/dist/mobx-state-tree.module.js.ArrayType$$1.applySnapshot (:8080/main.js:52884)
at executeAction (:8080/main.js:55058)
at ArrayType$$1.res (:8080/main.js:55050)
at :8080/main.js:50844
at executeAction (:8080/main.js:55058)
at res (:8080/main.js:55050)
at runMiddleWares (:8080/main.js:51533)
我看不到任何迹象表明我正在尝试将空字符串设置为数组。
我怎样才能确定它试图应用什么属性?