Redux Beacon
  • Introduction
  • Getting Started (Redux)
  • Getting Started (ngrx)
  • Examples & Recipes
  • Targets
    • GoogleAnalytics
    • GoogleAnalyticsGtag
    • GoogleTagManager
    • Segment
    • Amplitude
    • React Native: GoogleAnalytics
    • React Native: GoogleTagManager
    • React Native: Segment
  • API Reference
    • createMiddleware
    • createMetaReducer
    • EventDefinition
    • EventsMap
    • EventsMapper
  • Extensions
    • logger
    • OfflineWeb
    • OfflineReactNative
  • Utils
    • debounceEvent
    • ensure
    • combineEvents
  • FAQ
  • Migration Guide (v1 to v2)
  • Notes on Offline Events
Powered by GitBook
On this page
  • When I Try to Compile Angular with AoT I Get an Error
  • Relevant Discussions

FAQ

PreviouscombineEventsNextMigration Guide (v1 to v2)

Last updated 7 years ago

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

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 ...

The solution is to wrap the exported meta reducer in another meta reducer that is defined as a function declaration.

const targetMetaReducer = createMetaReducer(eventsMap, MyTarget());

export function analyticsMetaReducer(reducer) {
  return targetMetaReducer(reducer);
}

Relevant Discussions

#127
rangle/redux-gtm#39
When I Try to Compile Angular with AoT I Get an Error