Skip to content
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

Serialise Devices #18

Open
SmolSoftBoi opened this issue Jul 14, 2020 · 5 comments
Open

Serialise Devices #18

SmolSoftBoi opened this issue Jul 14, 2020 · 5 comments

Comments

@SmolSoftBoi
Copy link
Collaborator

Describe The Bug:
Unable to serialise the device classes.

To Reproduce:
JSON.stringify(device)

Expected behavior:
Serialise device to JSON.

Logs:

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'ArloBaseStation'
    |     property 'parent' -> object with constructor 'Arlo'
    |     property 'devices' -> object with constructor 'Object'

Environment:

  • Node.js Version: v14.5.0
  • NPM Version: 6.14.6
  • Operating System: macOS
@donavanbecker
Copy link
Contributor

@EpicKris Any progress on typescript in the beta?

@SmolSoftBoi
Copy link
Collaborator Author

SmolSoftBoi commented Feb 19, 2021

@EpicKris Any progress on typescript in the beta?

The beta fixes this issue by removing all circular dependencies.

@donavanbecker
Copy link
Contributor

@EpicKris awesome!

@donavanbecker
Copy link
Contributor

@EpicKris Can you please transfer this back to me?

@donavanbecker
Copy link
Contributor

@EpicKris ? Please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants