Static GitHub Issues

[486] Can't use JSON within classes while using nuxt/stringify bug

prev: router mode always be hash in ie9
next: customise router

I initially thought that this error was due to the auth0 package i'm using however they think it's because of nuxt.

I want to make a class wrapper (with ES6) for the Auth0 SDK I use within my app, like the following:

auth0-e-1

However I'm getting the error: auth0-e-2

I can make an instance of WebAuth fine, it's just when I define it within the 'this' namespace of my class that this fails.

The Auth0 team think it's how Nuxt serialises JSON.

Any ideas/suggestions?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c427">#c427</a>)</em></sub></div>