我一直在努力修改Aurelia骨架应用程序,事情进展顺利。然后我添加了两个新的jspm依赖项,bootstrap-material和aurelia-validation。一旦我这样做,我开始得到以下两个错误。
ERROR [app-router] TypeError: Cannot assign to read only property 'delegatedHandlers' of aurelia-dom-boundary
ERROR [app-router] Router navigation failed, and no previous location could be restored.
我无法超越这个。我已经尝试删除这些依赖项,将它们恢复到它们工作的时候,我仍然得到错误。知道可能导致它的原因吗?
答案 0 :(得分:1)
I believe this is just a regression in Aurelia binding library caused by this commit: https://github.com/aurelia/binding/commit/8d33813eb340c2136198916a4a757a2c577f5aab
let boundary = target.domBoundary || document,
delegatedHandlers = boundary.delegatedHandlers || (boundary.delegatedHandlers = {}),
...
I have made a comment, but did not open an Issue.
I rolled back the binding library from 0.8.4 to 0.8.2 until a fix is released.
Edit: they have fixed the issue