Search code examples
angularngrx

Cannot read property 'ids' of undefined Error


I'm trying out a simple sample from this github repo i.e link. Everything worked before I add the product store where I created new model, Action, effect and reducer.

But, now I'm getting

ERROR TypeError: Cannot read property 'ids' of undefined

I have added my code in stackblitz for reference. Please let me know what is that I'm doing wrong. Here is the link https://stackblitz.com/edit/angular-347wt1


Solution

  • i figure out the culprit, it was me :) , there was a typepo error in the name of the FeatureStore used at the time of registering the store in compared to the storename used while creating the FeatureSelector. Thanks to all who tried to answer this question.