ERROR in Cannot read property 'push' of undefined
See original GitHub issueError 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:
- Created 4 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The lastest angular version seems to fix this issue. (9.0.4)
Update to @ngx-translate/core v12.0.0 works for me