Skip to content

browser_adapter.ts:73 EXCEPTION: Error: Uncaught (in promise): RangeError: Maximum call stack size exceeded #465

Closed

Description

@arozwalak

I just cloned latest version of angular2-webpack-starter and setup my project. When I run npm run server it works ok, but when I try to get prod version with npm run build:prod and npm run server:prod I'm getting this error:

browser_adapter.ts:73 EXCEPTION: Error: Uncaught (in promise): RangeError: Maximum call stack size exceeded

this is stack trace:

t.logError  @   browser_adapter.ts:73
e.call  @   exception_handler.ts:52
(anonymous function)    @   application_ref.ts:258
t.object.i  @   async.ts:127
t.__tryOrUnsub  @   Subscriber.js:166
t.next  @   Subscriber.js:115
t._next @   Subscriber.js:74
t.next  @   Subscriber.js:51
t._finalNext    @   Subject.js:124
t._next @   Subject.js:116
t.next  @   Subject.js:73
t.emit  @   async.ts:113
_zoneImpl.i.NgZoneImpl.onError  @   ng_zone.ts:134
inner.inner.fork.onHandleError  @   ng_zone_impl.ts:88
t.handleError   @   zone.ts:703
t.runGuarded    @   zone.ts:557
i   @   zone.ts:886
invoke  @   zone.ts:811
zone.ts:855 Unhandled Promise rejection: Maximum call stack size exceeded ; Zone: angular ; Task: Promise.then ; Value: RangeError: Maximum call stack size exceeded
    at e._instantiate (http://localhost:8080/vendor.82d45b5a31d9cd9d56a5.bundle.js:15:3619)
    at e._instantiateProvider (http://localhost:8080/vendor.82d45b5a31d9cd9d56a5.bundle.js:15:1456)
    at e._new (http://localhost:8080/vendor.82d45b5a31d9cd9d56a5.bundle.js:15:1185)
    at e.instantiateProvider (http://localhost:8080/vendor.82d45b5a31d9cd9d56a5.bundle.js:14:28611)
    at e.init (http://localhost:8080/vendor.82d45b5a31d9cd9d56a5.bundle.js:5:19934)
    at new e (http://localhost:8080/vendor.82d45b5a31d9cd9d56a5.bundle.js:5:12832)
    at viewFactory_t0 (viewFactory_t:82:16)
    at viewFactory_t0 (viewFactory_t:84:1)
    at viewFactory_t0 (viewFactory_t:84:1)
    at viewFactory_t0 (viewFactory_t:84:1)

Activity

  1. antonmoiseev commented on Mar 27, 2016

    @antonmoiseev
    Contributor

    Try disabling mangling here: mangle: false.

  2. elvirdolic commented on Mar 29, 2016

    @elvirdolic

    is this something related to the current angular beta 12 version?
    I have the same issue and it only works when disabling mangle.

  3. PatrickJS commented on Mar 30, 2016

    @PatrickJS
    Owner

    I turned mangle to false so this problem won't happen again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions