2

我刚开始实现router-storengrx库。我按照他们的指示在那里实现了完整的路由器。

最后RouterState.Full配置抛出错误

错误:未捕获(承诺):TypeError:无法添加属性NG_ELEMENT_ID,对象不可扩展

另一方面,当我使用RouterState.Minimal配置时,它按预期工作。

ngrx 配置链接:https ://ngrx.io/guide/router-store/configuration

我怎么解决这个问题?

4

1 回答 1

-1

Two ways to solve this:

  • use minimal (for most of the cases I've seen, you don't need Full)
  • disable runtime checks
于 2020-06-16T18:07:15.120 回答