英文:
Uncaught TypeError: Cannot set property once of [object Object] which has only a getter
问题
Uncaught TypeError: Cannot set property once of [object Object] which has only a getter at HTMLDivElement.addEventListener (polyfills.js:1:146664)
在升级 Angular 版本时遇到上述问题。
请查看图片:
英文:
`Uncaught TypeError: Cannot set property once of [object Object] which has only a getter at HTMLDivElement.addEventListener (polyfills.js:1:146664)
Facing this above issue while upgrading angular version.
Please check image
答案1
得分: 1
Version 2.7 of @webcomponents/webcomponentsjs似乎引入了一个导致此错误的错误。我是通过zone.js和webcomponents的交互在Angular项目中发现的。
该错误描述在此处:https://github.com/webcomponents/polyfills/issues/531
截至版本2.8,似乎还没有修复,因此建议的解决方法似乎是降级到版本2.6。
英文:
Version 2.7 of @webcomponents/webcomponentsjs seems to have introduced a bug which causes this error. I found it through the interaction of zone.js and webcomponents, also in an Angular project.
The bug description is here: https://github.com/webcomponents/polyfills/issues/531
It seems to not have been fixed as of version 2.8, so the proposed workaround seems to be to downgrade to version 2.6.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论