platform icon indicating copy to clipboard operation
platform copied to clipboard

Missed provide ENTITY_METADATA_TOKEN in EntityDataModuleWithoutEffects

Open alexrutkov opened this issue 3 years ago • 2 comments

Minimal reproduction of the bug/regression with instructions

Should add in entity-data-without-effects.module.ts { provide: ENTITY_METADATA_TOKEN, multi: true, useValue: config.entityMetadata ? config.entityMetadata : [], }, as in entity-data.module.ts

Minimal reproduction of the bug/regression with instructions

Without this provide I get error No EntityDefinition for entity type '*'

Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)

NgRx/data@lastest

Other information

No response

I would be willing to submit a PR to fix this issue

  • [X] Yes
  • [ ] No

alexrutkov avatar Aug 17 '22 06:08 alexrutkov

Hi @alexrutkov it's hard to follow here. What are you trying to do that resolves in this error?

If I'm not mistaken, the ENTITY_METADATA_TOKEN token is missing from EntityDataModuleWithoutEffects ?

timdeschryver avatar Aug 17 '22 11:08 timdeschryver

I want use just EntityDataModuleWithoutEffects, but can't...get a lot mistakes. Start use native Store.

alexrutkov avatar Aug 21 '22 04:08 alexrutkov

Closing this one because it has no reproduction. Feel free to reopen or recreate with a reproduction.

timdeschryver avatar Apr 15 '23 13:04 timdeschryver