Angular:error TS2717: Subsequent property declarations must have the same type. Property 'contentRect' mu st be of type 'DOMRectReadOnly', but here has type 'DOMRectReadOnly'.
解决方案
在tsconfig.json的compilerOptions选项中添加如下内容"skipLibCheck": true。
如下图所示

之后重新启动项目。 如下图启动成功

学以致用,知行合一

浙公网安备 33010602011771号