Is it possible to use a node contained in a dependency?

Hi all,
I have a palette A which contains a config-node, I would like to externalize this config-node in another module so that this config-node can be used by another palette B.
Palettes A and B will therefore have this same config-node as a dependency.

I can't get config-node in Node-RED. The goal here is to use this config-node without having to install it, the user installs the palette and this config-node is directly present.

Is this possible or am I doing something wrong?


Not yet. There is a proposal on an open issue here: Allow node modules to have node modules as dependencies · Issue #569 · node-red/node-red · GitHub

Ok thanks.
A hack to advise to try to solve this issue?

Is it a good idea to declare the config-node in the main package and give this as the path?

"node-red": {
    "nodes": {
      "myConfigNode": "../myPackageName/build/nodes/my-config.js"

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