Home

Issue: 486

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

[issue link]

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?

This question is available on Nuxt.js community (#c427)