Creator3.6.0_Raphael项目中window.domhandler报错 “不存在属性“domhandler

  • Creator 版本: 3.6.2
  • 目标平台: Chrome
  • 首个报错: 类型“Window & typeof globalThis”上不存在属性“domhandler”。ts(2339)

需要支持svg,使用https://github.com/cocos/cocos-awesome-tech-solutions/tree/3.6.x-release/demo/Creator3.6.0_Raphael/
将https://github.com/cocos/cocos-awesome-tech-solutions/tree/3.6.x-release/demo/Creator3.6.0_Raphael/assets/raphael 拷贝到自有项目中

chrome控制台报错
TypeError: Cannot set properties of undefined (setting ‘_addDomElement’)

RGroup.ts提示

这个不影响使用

无法运行了

工程发下看看,我是直接跑的原项目

Demo.zip (3.6 MB)

感谢

Demo.zip (164.5 KB)
第三方库没引入,传值有问题。改了你试试