question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR in Cannot read property 'push' of undefined

See original GitHub issue

Error while compiling for Angular 9:

$ ng build --configuration=my-prod-config
0% compiling
Compiling @ngx-translate/core : es2015 as esm2015

Compiling @angular/common/http : es2015 as esm2015

Compiling @ngx-translate/http-loader : es2015 as esm2015



ERROR in Cannot read property 'push' of undefined

Environment:

@ngx-translate/core@12.1.1
@ngx-translate/http-loader@4.0.0
$ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.0.3
Node: 13.1.0
OS: linux x64

Angular: 9.0.3
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.3
@angular-devkit/build-angular     0.900.3
@angular-devkit/build-optimizer   0.900.3
@angular-devkit/build-webpack     0.900.3
@angular-devkit/core              9.0.3
@angular-devkit/schematics        9.0.3
@angular/cdk                      9.1.0
@angular/flex-layout              9.0.0-beta.29
@angular/material                 9.1.0
@ngtools/webpack                  9.0.3
@schematics/angular               9.0.3
@schematics/update                0.900.3
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.41.2
    

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
PillowPillowcommented, Feb 28, 2020

The lastest angular version seems to fix this issue. (9.0.4)

1reaction
alePantacommented, Feb 28, 2020

The lastest angular version seems to fix this issue. (9.0.4)

Update to @ngx-translate/core v12.0.0 works for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix TypeError: Cannot read Property 'push' of ...
When working with JavaScript arrays, you have to be careful that you are not calling the push() , pop() , shift() , unShift()...
Read more >
Cannot read property 'push' of undefined when combining ...
answer to your question is simple order is not a object make it an array. var order = new Array(); order.push(/item to push/);...
Read more >
TypeError: Cannot read Property 'push' of Undefined in JS
The "Cannot read property push of undefined" error occurs when trying to call the push() method on an undefined value. Make sure the...
Read more >
TypeError: Cannot read property 'push' of undefined - General
If it is a function node then copy/paste the text of the function here. Use the </> button when pasting it in. Before...
Read more >
TypeError: Cannot read property 'push' of undefined - JavaScript
This error message is telling us that the object we are calling it upon does not exist or is undefined. The error traces...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found