Skip to main content
PESDK/Web

Angular and Zone.js

The following error message indicates that PhotoEditorSDK was loaded with the included polyfills in an Angular environment:

  • Zone.js has detected that ZoneAwarePromise '(window|global).Promise' has been overwritten.

Angular will require a specific order in which the polyfills are loaded and PhotoEditorSDK provides an extra entrypoint for this case.

- import { PhotoEditorSDK } from 'photoeditorsdk'
+ import { PhotoEditorSDK } from 'photoeditorsdk/no-polyfills'

If you need to support IE11 and are using Angular 10 and below you will need to follow these steps afterwards: Add polyfills to Angular