2

I just started to implement the router-store of the ngrx library. I followed their instructions to implement the complete router there.

In the end the RouterState.Full configuration throws the error

Error: Uncaught (in promise): TypeError: Cannot add property NG_ELEMENT_ID, object is not extensible

On the other hand when I use the RouterState.Minimal configuration it works like expected.

Link of the ngrx configurations: https://ngrx.io/guide/router-store/configuration

How can I solve this problem?

Ling Vu
  • 4,740
  • 5
  • 24
  • 45

1 Answers1

-1

Two ways to solve this:

  • use minimal (for most of the cases I've seen, you don't need Full)
  • disable runtime checks
timdeschryver
  • 14,415
  • 1
  • 19
  • 32