(Codesandbox,Vue)'Property or method "children" is not defined on the instance but referenced during render.'

(Codesandbox, Vue) 'Property or method "children" is not defined on the instance but referenced during render.'

我目前正在构建一个状态管理器,它可以集成到多个前端框架中,包括 Vue。 为了演示 State Manger 在 Vue 中的用法,我创建了一个简单的 codesandbox。 因为有一个实时代码示例总是很好,可以在自述文件中进行推广。 但不知何故,我总是在 codesandbox 中收到这个(见下文)错误。

[Vue warn]: Property or method "children" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

上述错误出现在显示editor + preview的codesandbox中。 在本地或在单独的选项卡中(仅显示 preview) 它按预期工作(没有错误)。

Codesandbox(错误):
https://codesandbox.io/s/agilets-first-state-i5xxs?file=/src/main.js

单独点击 Codesandbox 预览(无错误):
https://i5xxs.csb.app/

本地项目(无错误):
https://github.com/agile-ts/agile/tree/master/examples/vue/develop/my-project

我不知道我做错了什么。 但这与我的州经理有关, 因为默认 vue codesandbox 工作正常。

忽略该错误。 bug in Codesandbox and not directly caused by your own code. One of their developers commented on Apr 13 该问题的优先级较低,因此可能不会很快得到解决。