按照使用组件构建教程尝试初始化事件集类型的多个组件失败
Trying to initialise multiple components of type event-set fails, following Building with Components Tutorial
我正在学习使用组件构建 A 型框架教程。
首先,布局组件部分有错别字:
layout="layout: line;
应该是:
layout="type: line;
其次,我已经到了 Event-Set Component 部分。不幸的是,我收到以下错误:
core:schema:warn Unknown property `src` for component/system `undefined`
和
Error: Trying to initialize multiple components of type `event-set`. There can only be one component of this type per entity.
第一个似乎 link 我浏览器化代码的无害部分,第二个特别具有讽刺意味,因为教程本身指出:
Notice that the event-set component can have multiple instances
代码本身在我的项目 GitHub 上,可以通过 GitHub 页 here 查看 运行。我会 link 编辑到更多页面和我的 GitHub,但我只能在这个 post 中放置两个 link 和我的新手状态。
我正在学习使用组件构建 A 型框架教程。
首先,布局组件部分有错别字:
layout="layout: line;
应该是:
layout="type: line;
其次,我已经到了 Event-Set Component 部分。不幸的是,我收到以下错误:
core:schema:warn Unknown property `src` for component/system `undefined`
和
Error: Trying to initialize multiple components of type `event-set`. There can only be one component of this type per entity.
第一个似乎 link 我浏览器化代码的无害部分,第二个特别具有讽刺意味,因为教程本身指出:
Notice that the event-set component can have multiple instances
代码本身在我的项目 GitHub 上,可以通过 GitHub 页 here 查看 运行。我会 link 编辑到更多页面和我的 GitHub,但我只能在这个 post 中放置两个 link 和我的新手状态。