Proper way to debug "Waiting for missing types to be registered"

I am pretty new to node-red development and I am trying to bring up the most convenient dev environment.

I am writing a node with a complex server side code that uses external classes. Every time am making a syntax (or another) mistake, my node is not getting registered without any output. At this point, I can go ahead and run the code outside of node-red and see output like this (i.e. via external test code).

SyntaxError: Unexpected eval or arguments in strict mode
    at wrapSafe (internal/modules/cjs/loader.js:1001:16)
    at Module._compile (internal/modules/cjs/loader.js:1049:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47

But I'd like to see the error with a backtrace when executed as a node.

Is there a way to do it?

Hi @cloud-rocket,
Can this perhaps be of any help to you?
Bart

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.