mongodb / stitch-js-sdk

MongoDB Stitch JavaScript SDK
Apache License 2.0
113 stars 67 forks source link

t.resolve is not a function #192

Open girish-fuluskar opened 5 years ago

girish-fuluskar commented 5 years ago

Hi,

I am facing following issue. Hope will get help.

My Use case:

Call javascript function from JS file (included in project) in ionic 4 on particular page

I having following issue.

ERROR TypeError: t.resolve is not a function at Object.setNativePromise (polyfills.js:3) at L.configurable.L.set (polyfills.js:3) at n.exports (ocw.js:4850) at a (ocw.js:4850) at Object.209.100 (ocw.js:4851) at s (ocw.js:4850) at ocw.js:4850 at Object.327.131 (ocw.js:4852) at s (ocw.js:4850) at ocw.js:4850

Steps Followed:

  1. Included JS file under src/assets
  2. added reference in index.html

3.In desired file, declared variable as function name 4.called javascript function under, ionViewDidLoad()

Ionic setup:

Ionic:

ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.0.0 Cordova Platforms : android 6.4.0, ios 4.5.5 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.2, (and 9 other plugins)

System:

ios-deploy : 1.9.2 ios-sim : 6.0.0 NodeJS : v8.12.0 (/usr/local/bin/node) npm : 6.4.1 OS : macOS Xcode : Xcode 10.1 Build version 10B61

tkaye407 commented 5 years ago

Hi, I apologize for this getting lost a bit. Can you please clarify what you were trying to with Stitch here / if this is still a problem with the most recent release of the SDK?