Telerik-Verified-Plugins / ImagePicker

Cordova Plugin For Multiple Image Selection
MIT License
182 stars 331 forks source link

Whenever I add ImagePicker to a module, I get "JSON.stringify cannot serialize cyclic structures" error #106

Open connor-odoherty opened 6 years ago

connor-odoherty commented 6 years ago

Every time I import { ImagePicker } from '@ionic-native/image-picker'; and init it in the constructor with private imagePicker: ImagePicker, I get the error: "error JSON.stringify()ing argument: TypeError: JSON.stringify cannot serialize cyclic structures."

Even if I don't use the plugin itself, just importing the plugin on a page is enough to throw this error.

I am currently using Ionic as follows:

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 6.5.0 

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.2.3 browser 4.1.0 ios 4.5.1
Ionic Framework    : ionic-angular 3.9.2

System:

ios-deploy : 1.9.2 
ios-sim    : 6.0.0 
Node       : v8.5.0
npm        : 5.3.0 
OS         : macOS Sierra
Xcode      : Xcode 9.2 Build version 9C40b 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro