editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

How can I get insight into what is causing plugin errors?

Open dannyshaw opened this issue 2 years ago • 1 comments

I'm writing a custom block for EditorJS. I'm finding i'm constantly looking at this error in the console

image

Is there a reason the errors leading to this are caught and not surfaced? There's nothing to go on and it makes it very difficult to debug what is happening in my plugin to move forward. I have set log level to VERBOSE but this is all I'm getting.

I'd love to know how the DX can be improved, is there something I'm missing?

dannyshaw avatar Aug 02 '22 09:08 dannyshaw

If I debug the log, there seems to be a block that creates an Error() object for the exception, but that exception is not thrown. I'm guessing this allows the editor to continue loading but it would be great if there were a configurable option to throw any errors in a plugin? Perhaps something like:

'my-custom-block': {
  class: CustomBlock,
  inlineToolbar: true,
  throwErrors: true
}

dannyshaw avatar Aug 02 '22 09:08 dannyshaw

same problem too. missing any error description. unable to debug tools

talyguryn avatar Jan 30 '23 15:01 talyguryn

Still no reaction by the team ?

Alx90s avatar May 25 '23 09:05 Alx90s