我正在使用"angular-tree-component": "^8.0.3"
为我的 Angular7 单页应用程序(SPA)构建树。我正在关注文档并创建树,但是一旦向组件中的节点提供输入,就会出现以下异常。
core.js:14597 ERROR Error: Uncaught (in promise): TypeError: Cannot add property uuid, object is not extensible
TypeError: Cannot add property uuid, object is not extensible
at TreeNode.setField (tree-node.model.js:179)
at TreeNode.set [as id] (tree-node.model.js:170)
at new TreeNode (tree-node.model.js:30)
at MapSubscriber.project (tree-node.model.js:444)
at MapSubscriber._next (map.js:35)
at MapSubscriber.Subscriber.next (Subscriber.js:54)
at DistinctUntilChangedSubscriber._next (distinctUntilChanged.js:54)
at DistinctUntilChangedSubscriber.Subscriber.next (Subscriber.js:54)
at DistinctUntilChangedSubscriber._next (distinctUntilChanged.js:54)
at DistinctUntilChangedSubscriber.Subscriber.next (Subscriber.js:54)
at resolvePromise (zone.js:814)
at SafeSubscriber._error (zone.js:724)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:196)
at SafeSubscriber.error (Subscriber.js:147)
at Subscriber._error (Subscriber.js:80)
at Subscriber.error (Subscriber.js:60)
at MapSubscriber._next (map.js:38)
at MapSubscriber.Subscriber.next (Subscriber.js:54)
at DistinctUntilChangedSubscriber._next (distinctUntilChanged.js:54)
at DistinctUntilChangedSubscriber.Subscriber.next (Subscriber.js:54)
无论是否正确地完全数据没有复制到节点或任何其他类型的问题,这背后的原因可能是什么。请任何人帮助。谢谢。