Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Angular app with formiojs not working on Mozilla, IE 11, Edge #2850

Closed
1 of 2 tasks
MihaiRebegea opened this issue May 28, 2020 · 1 comment
Closed
1 of 2 tasks
Labels

Comments

@MihaiRebegea
Copy link

Environment

I have an Angular app where I integrated formiojs.
I'm not using the formio-angular component because I need to authenticate the user via token swap and I'm using formIOFetch plugin to fetch some data from my backend.

  • Hosting type
    • Form.io
    • Local deployment
      • Version:
  • Formio.js version: 4.9.26
  • Frontend framework: Angular version 8
  • Browser: Mozilla, Internet Explorer 11, Edge
  • Browser version: Mozilla 76.0.1, IE 11, Edge 44.18362.449.0

Steps to Reproduce

  1. Create simple Angular component
  2. Import formiojs
  3. Use anything related to formio in the component for ex: Formio.logout();

Expected behavior

App should start without issues like on Chrome or Opera

Observed behavior

Blank screen appears in Mozilla, IE11, Edge.

Following error appears in the console:

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.)"

I found this ticket which states the same error formio/angular-demo#15
However updating to formiojs version 4.9.26 didn't do the trick for me.

Thank you in advance for your help

@travist
Copy link
Member

travist commented May 28, 2020

I believe this was resolved with the latest version of angular-formio.

formio/angular#552

@travist travist closed this as completed May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants