-
Notifications
You must be signed in to change notification settings - Fork 57
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
"TypeError: Object(...) is not a function" when importing to module #57
Comments
The details you shared aren't enough to know where the issue is coming from. But looking at your |
But, does stripe have a version 5? I need the v5 ionic native packages if I want some of the stuff of the app to work, and I still can't be able to use this native library no matter what I do. Mind that the app breaks only when I setup it as a provider for any, literally any given module. That's not normal, especially when the error thrown makes so little sense. |
I have the exact same issue and I am running 5.1.0 of stripe. When I do an npm install it tells me I need to install rxjs^6.3, but other plugins require 5.X of rxjs - not sure if that makes a difference. I also wrapped the call in a platform.ready block but that didnt make a difference. I'd use stripe.js directly with elements but ionic appears to block stripe.js on iOS for production |
Downgrade everything in @ionic-native to 4.20.0 v5 is a pre-release .. so it will be unstable. |
After installing Stripe and the Cordova plugin, and setting up Stripe as a provider in any module, the app won't load and will output the message:
It doesn't matter if I put is as a provider to the main module, or the components module for lazyloading components, or wherever. It just will output this error and nothing more. Something's definitely not fine here.
Some data about my setup:
Node v11.8
Dependencies:
Plugins:
"plugins": { "cordova-plugin-geolocation": { "GEOLOCATION_USAGE_DESCRIPTION": "To locate you" }, "cordova-plugin-whitelist": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-device": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-ionic-webview": { "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+" }, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-native-spinner": {}, "cordova-plugin-stripe": {} },
The text was updated successfully, but these errors were encountered: