Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Uncaught Error: Zone.js has detected that ZoneAwarePromise #401

Closed
@cleever

Description

@cleever

Short description of the problem:

Prod build in a android device throw the following error at bootstrap time:

"Uncaught Error: Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten: Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)"

Steps to reproduce:

  1. Update app-script to the lastest version:

npm install @ionic/app-scripts@0.0.44 --save-dev or
npm install @ionic/app-scripts@latest --save-dev

  1. Run project on device:
    ionic run android

  2. Open the app.

The screen becomes white and app doesn't load.
Inspecting the device shows the error above.

Which @ionic/app-scripts version are you using?

ionic/app-scripts 0.0.44

Roll-backing to 0.0.39 (my safe zone) resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions