Open ziggear opened 1 month ago
首先感谢反馈问题。 这个问题是因为 vuejs 这边近期的一个改动,修改了 patchProp 的API 参数类型和个数,因此我们需要进行兼容处理,这是他们的改动 https://github.com/vuejs/core/pull/11159
这里如果你想要先运行demo,可以重新 clone 项目,然后将 packages/hippy-vue-next/package.json 中 devDependencies 的 两个 vue 的依赖由 ^3.2.46 修改为 3.4.21,examples中hippy-vue-next-demo中 ^3.2.46 的依赖都改为 3.4.21
然后应该就可以把demo先运行起来了
Describe the bug 进入 driver/js 目录,执行
npm run init
后提示patchProp类型不匹配,编译失败:To Reproduce 复现环境: MacOS 14.4.1 node v16.20.2 npm 8.19.4 source code: main, commit 5e6823a0ba08c471f7e0f20476132d90428cf5cc
复现步骤:
ttypescript
报错:TypeError: Cannot set property constructor of [object Object] which has only a getter
build js packages error Error: packages/hippy-vue-next/src/index.ts:301:5 - error TS2322: Type '(el: any, key: string, prevValue: any, nextValue: any, namespace: ElementNamespace, prevChildren: VNode<HippyNode, HippyElement, { [key: string]: any; }>[] | undefined, parentComponent: ComponentInternalInstance | null) => void' is not assignable to type '(el: any, key: string, prevValue: any, nextValue: any, namespace?: ElementNamespace, parentComponent?: ComponentInternalInstance | null | undefined) => void'.