editor.js
editor.js copied to clipboard
How can I get insight into what is causing plugin errors?
I'm writing a custom block for EditorJS. I'm finding i'm constantly looking at this error in the console
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?
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
}
same problem too. missing any error description. unable to debug tools
Still no reaction by the team ?