# Polyfills.js:3 Uncaught TypeError: t.resolve is not a function with angular 5 and ionic 3

**URL:** <https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998>\
**Category:** Web\
**Created:** [December 22, 2020, 3:57pm UTC](https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998 "2020-12-22T15:57:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![etibarworksup](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/etibarworksup/32/20220_2.png) [@etibarworksup](https://devforum.zoom.us/u/etibarworksup)\
**Post date:** [December 22, 2020, 3:57pm UTC](https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998/1 "2020-12-22T15:57:56Z")

</div>

**Description**  
Hello. We followed [GitHub - zoom/meetingsdk-angular-sample: Use the Zoom Meeting SDK in Angular](https://github.com/zoom/websdk-sample-angular)  
Created component in our existing project.  
we tried pointing to a locally hosted zoom scripts, i.e. audio/ av/ /lang /zoom-meeting-ES5.min.js /zoomus-websdk.umd.min.js

> ```
> ZoomMtg.preLoadWasm();
> ZoomMtg.prepareJssdk();
> ZoomMtg.setZoomJSLib('https://localhost:8100/assets/js/zoom/', '/av');
> 
> ```

component.ts [zoom.component.ts - Pastebin](https://pastebin.pl/view/f31231b1)  
component.scss [zoom.component.scss - Pastebin](https://pastebin.pl/view/62ad7da6)  
component.html [zoom.component.html - Pastebin](https://pastebin.pl/view/538cc52a)

**Error**

> polyfills.js:3 Uncaught TypeError: t.resolve is not a function  
> at Object.setNativePromise (polyfills.js:3)  
> at L.configurable.L.set (polyfills.js:3)  
> at e.exports (zoomus-websdk.umd.min.js:2)  
> at c (zoomus-websdk.umd.min.js:2)  
> at Object. (zoomus-websdk.umd.min.js:2)  
> at n (zoomus-websdk.umd.min.js:2)  
> at Module. (zoomus-websdk.umd.min.js:2)  
> at n (zoomus-websdk.umd.min.js:2)  
> at Object. (zoomus-websdk.umd.min.js:2)  
> at n (zoomus-websdk.umd.min.js:2)

**Which version?**  
“@angular/core”: “5.2.11",  
“ionic-angular”: “3.9.8",  
“@zoomus/websdk”: “^1.8.3",  
“typescript”: “~2.6.2"

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 23, 2020, 10:42pm UTC](https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998/2 "2020-12-23T22:42:43Z")

</div>

Hey @etibarworksup,

Are you seeing this issue just when using Ionic? Or with the [Angular Web SDK Sample App](https://github.com/zoom/websdk-sample-angular) in general?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![etibarworksup](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/etibarworksup/32/20220_2.png) [@etibarworksup](https://devforum.zoom.us/u/etibarworksup)\
**Post date:** [December 27, 2020, 1:37pm UTC](https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998/3 "2020-12-27T13:37:18Z")

</div>

when using ionic and angular, not directly with sample app.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 28, 2020, 7:22pm UTC](https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998/4 "2020-12-28T19:22:09Z")

</div>

Hey @etibarworksup,

Gotcha, thanks for confirming. I have not tested the Web SDK within an Ionic app before. However, you could try using the [Zoom Ionic SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/ionic).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![etibarworksup](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/etibarworksup/32/20220_2.png) [@etibarworksup](https://devforum.zoom.us/u/etibarworksup)\
**Post date:** [January 4, 2021, 10:00am UTC](https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998/6 "2021-01-04T10:00:25Z")

</div>

hi @tommy, unluckily Zoom Ionic SDK supports only android and iPhone, but not a web application. We need web application as well.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 4, 2021, 11:14pm UTC](https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998/7 "2021-01-04T23:14:22Z")

</div>

Hey @etibarworksup,

Thank you for providing additional information. In this instance, there are a couple of options. First, you could have a separate code base for the ionic apps and the web app that you create. This means that you would use the Ionic SDK for Android and iOS and the Web SDK for the web.

The next option would be to try to use a WebView container within Ionic that allows you to display the web app that you’ve created with the Web SDK.

I understand that neither of these options are ideal, however. If you would like Ionic Web App support to be considered for a future release, I recommend posting in the #feature-requests category.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 4, 2021, 9:14am UTC](https://devforum.zoom.us/t/polyfills-js-3-uncaught-typeerror-t-resolve-is-not-a-function-with-angular-5-and-ionic-3/38998/8 "2021-02-04T09:14:23Z")

</div>

Closed on February 4, 2021, 9:14am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
