I have a standard setup from the NGRX data docs with one Entity. Everything works with JIT but when I do AOT then I get following Error:
...
Function expressions are not supported in decorators in 'entityConfig'
'entityConfig' references 'ɵ0'
...
Consider changing the function expression into an exported function.
My entity config:
const entityMetadata: EntityMetadataMap = {
Identifiers: {}
};
export const entityConfig = {
entityMetadata
};
My module:
...
import { entityConfig } from './store/entity-metadata';
@NgModule({
imports: [CommonModule, EntityDataModule.forRoot(entityConfig)]
})
...
The error is thrown here:
EntityDataModule.forRoot(entityConfig)
Versions:
"@angular/core": "^8.1.1",
"@ngrx/data": "^8.6.0",
"@ngrx/store": "^8.6.0",