[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
Hi I created a project with cli version 1.6.6 and i've work on this project about a month, always ng serve testing and today I've want to deploy on server and when I run 'ng build --prod' it throws 'Maximum call stack size exceeded...'
I look this post with likely behaviour and doesn't seem to be fixed :(
It should complile without problems.
`C:\Users\Diego Mendez\Desktopinnovacion-notaria-digital>ng build --pr
od
10% building modules 0/1 modules 1 active ...nnovacion-notaria-digita
10% building modules 1/2 modules 1 active ...cion-notaria-digital\src
10% building modules 2/3 modules 1 active ...acion-notaria-digital\sr
10% building modules 3/4 modules 1 active ...acion-notaria-digital\sr
10% building modules 3/5 modules 2 active ...nnovacion-notaria-digita
10% building modules 3/6 modules 3 active ...cion-notaria-digital\src
10% building modules 4/6 modules 2 active ...cion-notaria-digital\src
10% building modules 5/6 modules 1 active ...acion-notaria-digital\sr
c\styles.scssNode#moveTo was deprecated. Use Container#append.
10% building modules 6/7 modules 1 active ...de_modules\css-loader\li
10% building modules 7/8 modules 1 active ...acion-notaria-digital\sr
Date: 2018-02-15T15:01:56.479Z
Hash: 2fc5ae5cead61d445921
Time: 17544ms
chunk {scripts} scripts.abd2bc1a81803e88ec1c.bundle.js (scripts) 160 k
B [initial] [rendered]
chunk {0} styles.b71bf03706da12181fe1.bundle.css (styles) 198 kB [init
ial] [rendered]
chunk {1} polyfills.3bc34265385d52184eab.bundle.js (polyfills) 86 byte
s [initial] [rendered]
chunk {2} main.e402deade8b026b7d50e.bundle.js (main) 84 bytes [initial
] [rendered]
chunk {3} inline.9d07561b59257af76b95.bundle.js (inline) 1.45 kB [entr
y] [rendered]
ERROR in RangeError: Maximum call stack size exceeded
at AotSummaryResolver.resolveSummary (C:\Users\Diego Mendez\Deskto
pinnovacion-notaria-digital\node_modules\@angular\compilerbundles\co
mpiler.umd.js:32815:14)
at StaticSymbolResolver._resolveSymbolFromSummary (C:\Users\Diego
Mendez\Desktopinnovacion-notaria-digital\node_modules\@angular\compil
erbundles\compiler.umd.js:29372:61)
at StaticSymbolResolver.resolveSymbol (C:\Users\Diego Mendez\Deskt
opinnovacion-notaria-digital\node_modules\@angular\compilerbundles\c
ompiler.umd.js:29119:74)
at resolveReferenceValue (C:\Users\Diego Mendez\Desktopinnovacion
-notaria-digital\node_modules\@angular\compilerbundles\compiler.umd.j
s:32059:75)
at simplify (C:\Users\Diego Mendez\Desktopinnovacion-notaria-digi
tal\node_modules\@angular\compilerbundles\compiler.umd.js:32222:65)
at simplifyInContext (C:\Users\Diego Mendez\Desktopinnovacion-not
aria-digital\node_modules\@angular\compilerbundles\compiler.umd.js:32
427:20)
at simplifyNested (C:\Users\Diego Mendez\Desktopinnovacion-notari
a-digital\node_modules\@angular\compilerbundles\compiler.umd.js:32084
:28)
at simplify (C:\Users\Diego Mendez\Desktopinnovacion-notaria-digi
tal\node_modules\@angular\compilerbundles\compiler.umd.js:32224:36)
at simplifyInContext (C:\Users\Diego Mendez\Desktopinnovacion-not
aria-digital\node_modules\@angular\compilerbundles\compiler.umd.js:32
427:20)
at simplifyNested (C:\Users\Diego Mendez\Desktopinnovacion-notari
a-digital\node_modules\@angular\compilerbundles\compiler.umd.js:32084
:28)
at simplify (C:\Users\Diego Mendez\Desktopinnovacion-notaria-digi
tal\node_modules\@angular\compilerbundles\compiler.umd.js:32224:36)
at simplifyInContext (C:\Users\Diego Mendez\Desktopinnovacion-not
aria-digital\node_modules\@angular\compilerbundles\compiler.umd.js:32
427:20)
at simplifyNested (C:\Users\Diego Mendez\Desktopinnovacion-notari
a-digital\node_modules\@angular\compilerbundles\compiler.umd.js:32084
:28)
at simplify (C:\Users\Diego Mendez\Desktopinnovacion-notaria-digi
tal\node_modules\@angular\compilerbundles\compiler.umd.js:32224:36)
at simplifyInContext (C:\Users\Diego Mendez\Desktopinnovacion-not
aria-digital\node_modules\@angular\compilerbundles\compiler.umd.js:32
427:20)
at simplifyNested (C:\Users\Diego Mendez\Desktopinnovacion-notari
a-digital\node_modules\@angular\compilerbundles\compiler.umd.js:32084
:28)
`
and this is my package.json
{
"name": "notaria-digital-front",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@agm/core": "^1.0.0-beta.2",
"@angular/animations": "^5.2.0",
"@angular/cdk": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/material": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"@types/lodash": "^4.14.98",
"angular-google-place": "0.0.3",
"bootstrap": "^4.0.0",
"core-js": "^2.4.1",
"jquery": "^3.3.1",
"lodash": "^4.17.4",
"ng2-pdf-viewer": "^3.0.8",
"ng2-rut": "^0.2.1",
"rxjs": "^5.5.6",
"tether": "^1.4.3",
"zone.js": "^0.8.19"
},
"devDependencies": {
"@angular/cli": "1.6.6",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3"
}
}
Angular version: 5
Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: 8.5.0
- Platform: Windows
Others:
Windows 7
12 GB Ram
Sublime text
NPM: 5.6.0
This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
I agree https://github.com/angular/angular/issues/19979 is related but I can't say if it's the same thing. If you have a repro it will go a long way towards us identifying what's wrong.
I was able to reproduce this bug or something very very similar. I have created a repo here.
Steps to reproduce:
import * as monaco from '@timkendrick/monaco-editor';
let editor = monaco.editor.create(new HTMLElement(), {
theme: "vs-dark",
language: "csharp"
});
That gives the following output:
ERROR in ./node_modules/@timkendrick/monaco-editor/dist/standalone/index.js
Module build failed: RangeError: Maximum call stack size exceeded
at Object.visitEachChild (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51169:28)
at visitor (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\src\transforms\scrub-file.js:84:27)
at visitNode (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51053:23)
at Object.visitEachChild (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51289:46)
at visitor (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\src\transforms\scrub-file.js:84:27)
at visitNode (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51053:23)
at Object.visitEachChild (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51289:46)
at visitor (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\src\transforms\scrub-file.js:84:27)
at visitNode (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51053:23)
at Object.visitEachChild (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51289:46)
at visitor (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\src\transforms\scrub-file.js:84:27)
at visitNode (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51053:23)
at Object.visitEachChild (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51289:46)
at visitor (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\src\transforms\scrub-file.js:84:27)
at visitNode (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51053:23)
at Object.visitEachChild (C:\Users\morga\Downloads\throwaway\reprobug9636\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:51289:46)
@morganabel - I get this error in my project occasionally. I've disabled the build optimizer for now.
I got this while building for production.
ERROR in RangeError: Maximum call stack size exceeded
at simplify (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32195:32)
at simplifyInContext (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32434:20)
at simplifyNested (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32091:28)
at simplify (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32231:36)
at simplifyInContext (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32434:20)
at simplifyNested (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32091:28)
at simplify (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32231:36)
at simplifyInContext (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32434:20)
at simplifyNested (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32091:28)
at simplify (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32231:36)
at simplifyInContext (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32434:20)
at simplifyNested (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32091:28)
at simplify (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32231:36)
at simplifyInContext (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32434:20)
at simplifyNested (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32091:28)
at simplify (/home/pranavkumar/projects/v2/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:32231:36)
I get this running ng test as well
@filipesilva
Several people who uses ag-grid started getting this error after upgrading angular to v6.
https://github.com/ag-grid/ag-grid-angular/issues/184#issuecomment-389157855
Originally, I though it's ag-grid problem (maybe some circular dependencies) and started looking into it. Deleting line by line I ended up with one file which still causes this "max call stack reached" error.
I've checked it on several machines with windows 10 - failed on both.
To reproduce add that file in your project or just clone this repo and run ng build --prod.
You should get:
ERROR in ./src/app/my-class.ts
Module build failed: RangeError: Maximum call stack size exceeded
at getJSDocTags (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:11781:26)
at getFirstJSDocTag (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:11792:20)
at Object.getJSDocTemplateTag (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:11734:16)
at Object.getEffectiveTypeParameterDeclarations (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:10393:34)
at getTypeParametersFromDeclaration (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:30240:27)
at getSignatureFromDeclaration (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:30422:82)
at getSignaturesOfSymbol (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:30530:37)
at resolveAnonymousTypeMembers (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:29670:43)
at resolveStructuredTypeMembers (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:29834:25)
at createTypeNodeFromObjectType (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:27149:36)
at createAnonymousTypeNode (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:27120:46)
at typeToTypeNodeHelper (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:27065:28)
at createTypeNodesFromResolvedType (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:27333:67)
at createTypeNodeFromObjectType (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:27167:35)
at createAnonymousTypeNode (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:27120:46)
at typeToTypeNodeHelper (C:\max-call-stack-repro\node_modules\typescript\lib\typescript.js:27065:28)
@dzonatan that is very interesting information, thank you for taking the time to identify what's breaking. Will look at it 馃憤
As far as I can tell it is a problem with build optimizer, since I can repro with ng build --aot --build-optimizer but not with ng build --aot.
Indeed with build optimizer, forgot to mention that too.
@filipesilva did you had chance to look at it? Or maybe have any tips how can I analyze build-optimizer myself in best way?
@dzonatan looked into this a bit today and I am sorry to report this looks like an existing TypeScript bug: https://github.com/Microsoft/TypeScript/issues/17033
I made another repro for that bug using your file, as it is simpler than the existing repro they have there.
It looks like the newly release TS 2.9.1 does not suffer from that problem. Will see if we can update Build Optimizer to use 2.9.1.
Wooow! That was fast! I want to thank you @filipesilva for fixing this so quickly! 馃嵒
I wish angular core team would work at such speeds.
I'm unsure as what I need to do to get away from this problem. Update @angular-devkit/build-optimizer and/or angular-cli (since that has now subsumed angular-devkit) to ... which version? Do I also need to upgrade TypeScript?
@rogercoder you should be able to update @angular-devkit/build-angular to the latest stable and that should include the fix.
I still have the same issue with @angular-devkit/[email protected] and @angular/cli @6.1.0
ERROR in ./node_modules/sweetalert2/dist/sweetalert2.all.js
Module build failed: RangeError: Maximum call stack size exceeded
at skipSynthesizedParentheses (D:\dev\workspaces\rh\PortailRH-Front-v2\node_modules\@angular-devkitbuild-optimizer\node_modules\typescript\lib\typescript.js:77260:44)
I'm getting a similar but slightly different error but it only started after changing form node 8 to 10
RangeError: Maximum call stack size exceeded
at arrayClone (events.js:469:20)
at process.emit (events.js:185:23)
at process.EventEmitter.emit (domain.js:442:20)
at process.emit (/node_modules/source-map-support/source-map-support.js:454:21)
at _addListener (events.js:211:14)
at process.prependListener [as __zone_symbol__prependListener] (events.js:266:14)
at ZoneTask.customSchedulePrepend [as scheduleFn] (/node_modules/zone.js/dist/zone-node.js:1622:47)
at ZoneDelegate.scheduleTask (/node_modules/zone.js/dist/zone-node.js:407:26)
at Zone.scheduleTask (/node_modules/zone.js/dist/zone-node.js:232:43)
at Zone.scheduleEventTask (/node_modules/zone.js/dist/zone-node.js:258:25)
error Command failed with exit code 1.
Angular CLI: 6.1.2
Node: 10.8.0
OS: darwin x64
Angular: 6.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.7.2
@angular-devkit/build-angular 0.7.2
@angular-devkit/build-optimizer 0.7.2
@angular-devkit/build-webpack 0.7.2
@angular-devkit/core 0.7.2
@angular-devkit/schematics 0.7.2
@angular/cdk 6.4.2
@angular/cli 6.1.2
@angular/material 6.4.2
@angular/material-moment-adapter 6.4.2
@ngtools/webpack 6.1.2
@schematics/angular 0.7.2
@schematics/update 0.7.2
rxjs 6.2.2
typescript 2.9.2
webpack 4.9.2
I am using nodejs 10.5.0.
I am using Angular 7.1.0 version.
Situation is that i have added material header bar and side-bar in layout. Header bar has a hamberger button which i want to use as toggle to show and hide side-bar in layout. Rxjs is being used to remember current state of side-bar. Default state of behavioursubject is opened. I have added a condition on hamberger button function that if it is opened then set to closed or vice-versa case. But system returns me below error in console:
ERROR RangeError: Maximum call stack size exceeded
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:204)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next (Subscriber.js:134)
at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next (Subscriber.js:77)
at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54)
at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next (Subject.js:47)
at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next (BehaviorSubject.js:38)
at UserService.push../src/app/user.service.ts.UserService.toggleAdminMenuStatus (user.service.ts:60)
at SafeSubscriber._next (admin-header.component.ts:47)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:196)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next (Subscriber.js:134)
defaultErrorLogger @ core.js:14597
push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ core.js:14645
next @ core.js:16628
schedulerFn @ core.js:12609
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:12593
(anonymous) @ core.js:16178
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388
push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138
push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular @ core.js:16115
onHandleError @ core.js:16178
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.handleError @ zone.js:392
push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:191
push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:496
ZoneTask.invoke @ zone.js:485
timer @ zone.js:2054
setTimeout (async)
scheduleTask @ zone.js:2075
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:407
onScheduleTask @ zone.js:297
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:401
push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:232
push../node_modules/zone.js/dist/zone.js.Zone.scheduleMacroTask @ zone.js:255
scheduleMacroTaskWithCurrentZone @ zone.js:1114
(anonymous) @ zone.js:2090
proto.(anonymous function) @ zone.js:1394
hostReportError @ hostReportError.js:3
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:204
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:47
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
push../src/app/user.service.ts.UserService.toggleAdminMenuStatus @ user.service.ts:60
(anonymous) @ admin-header.component.ts:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject.next @ BehaviorSubject.js:38
Kindly suggest me what is the issue and how can i fix this issue. Thanks a lot.
See attched screenshot

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
@dzonatan looked into this a bit today and I am sorry to report this looks like an existing TypeScript bug: https://github.com/Microsoft/TypeScript/issues/17033
I made another repro for that bug using your file, as it is simpler than the existing repro they have there.
It looks like the newly release TS 2.9.1 does not suffer from that problem. Will see if we can update Build Optimizer to use 2.9.1.