lundi 5 juin 2017

ember-simple-auth and torii firebase TypeError: Converting circular structure to JSON

I started out getting torri and emberfire to work for a login page but when I try to use that with ember simple auth I get the error:

TypeError: Converting circular structure to JSON
    at JSON.stringify (<anonymous>)
    at Class.persist (local-storage.js:45)
    at Class.persist (adaptive.js:163)
    at Class._callStoreAsync (internal-session.js:132)
    at Class._updateStore (internal-session.js:207)
    at Class._setup (internal-session.js:156)
    at internal-session.js:61
    at tryCatch (ember.debug.js:50180)
    at invokeCallback (ember.debug.js:50195)
    at publish (ember.debug.js:50163)

Not sure if its a bug or I'm missing something that needs setting up. Made a quick repo which shows my problem http://ift.tt/2sKwcKz where the diff http://ift.tt/2rMz8sR shows what I added to try and get ember simple auth to work.

DEBUG: -------------------------------
DEBUG: Ember             : 2.13.3
DEBUG: Ember Data        : 2.13.1
DEBUG: Firebase          : 3.9.0
DEBUG: EmberFire         : 0.0.0
DEBUG: jQuery            : 3.2.1
DEBUG: Ember Simple Auth : 1.3.0
DEBUG: -------------------------------




Aucun commentaire:

Enregistrer un commentaire