eva-engine / eva.js

Eva.js is a front-end game engine specifically for creating interactive game projects.
https://eva.js.org
MIT License
1.75k stars 108 forks source link

EvaX报错 无法添加入对象内 #100

Closed han-yao-long closed 3 years ago

han-yao-long commented 3 years ago

版本

"@eva/plugin-evax": "^1.1.1", "@eva/plugin-renderer": "^1.1.0", "@eva/plugin-renderer-img": "^1.1.0",

书写内容

const gameObject1 = new GameObject("bg1", { size: { width: 800, height: 1000, }, position: { x: 0, y: 1000 } }); gameObject1.addComponent(new EvaX({ events: { 'store.a': () => {} } }))

报错

addComponent recieve Component and Component Constructor

fanmingfei commented 3 years ago

重装所有 npm 包。保持所有npm包版本保持一致