devtools: Property or method "toJSON" is not defined

This error happens when i pass the component by param to action in vuex.

To reproduce the error

  //  Call an action in component passing the component as param to vuex
  this.$store.dispatch('metadataAddBox', { component: this });

screenshot

[Vue warn]: Property or method “toJSON” is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 4
  • Comments: 21 (5 by maintainers)

Most upvoted comments

Sentry seems to cause this error

Any updates about this with Sentry?

In my project, I opened the console, by this

window.vConsole = new VConsole();

but when I commented it. It works, the Vue warn was disappeared.

Yeah, it happens with me too.

Sentry seems to cause this error

yep. I close Sentry and fix this error