Error while using ngx-translate in ionic3

Hi All,

Please help me to solve this error.

core.js:1350 ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
    at TranslateService.get (ngx-translate-core.js:751)
    at TranslatePipe.updateValue (ngx-translate-core.js:1146)
    at TranslatePipe.transform (ngx-translate-core.js:1190)
    at Object.eval [as updateRenderer] (SignInPage.html:47)
    at Object.debugUpdateRenderer [as updateRenderer] (core.js:14376)
    at checkAndUpdateView (core.js:13512)
    at callViewAction (core.js:13857)
    at execComponentViewsAction (core.js:13789)
    at checkAndUpdateView (core.js:13513)
    at callWithDebugContext (core.js:14739)
    at TranslateService.get (ngx-translate-core.js:751)
    at TranslatePipe.updateValue (ngx-translate-core.js:1146)
    at TranslatePipe.transform (ngx-translate-core.js:1190)
    at Object.eval [as updateRenderer] (SignInPage.html:47)
    at Object.debugUpdateRenderer [as updateRenderer] (core.js:14376)
    at checkAndUpdateView (core.js:13512)
    at callViewAction (core.js:13857)
    at execComponentViewsAction (core.js:13789)
    at checkAndUpdateView (core.js:13513)
    at callWithDebugContext (core.js:14739)
    at c (polyfills.js:3)
    at Object.reject (polyfills.js:3)
    at NavControllerBase._fireError (nav-controller-base.js:223)
    at NavControllerBase._failed (nav-controller-base.js:216)
    at nav-controller-base.js:263
    at t.invoke (polyfills.js:3)
    at Object.onInvoke (core.js:4626)
    at t.invoke (polyfills.js:3)
    at r.run (polyfills.js:3)
    at polyfills.js:3

Use the proper version.

2 Likes

See:

And (re lazy loading):

Thanks all got the solution. The error was due to the version mismatch. Downgraded to 9.x solved my issue