FAQ

When I Try to Compile Angular with AoT I Get an Error

1
ERROR in Error encountered resolving symbol values statically. Calling function 'createMetaReducer', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol analyticsMetaReducer in ...
Copied!
The solution is to wrap the exported meta reducer in another meta reducer that is defined as a function declaration.
1
const targetMetaReducer = createMetaReducer(eventsMap, MyTarget());
2
3
export function analyticsMetaReducer(reducer) {
4
return targetMetaReducer(reducer);
5
}
Copied!

Relevant Discussions

Last modified 3yr ago