# Configuration node inside subflow packaged as module

**URL:** <https://discourse.nodered.org/t/configuration-node-inside-subflow-packaged-as-module/82755>\
**Category:** Developing Nodes\
**Created:** [10 November 2023 11:43 UTC](https://discourse.nodered.org/t/configuration-node-inside-subflow-packaged-as-module/82755 "2023-11-10T11:43:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItsDaveTheWave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/itsdavethewave/32/65618_2.png) [@ItsDaveTheWave](https://discourse.nodered.org/u/ItsDaveTheWave)\
**Post date:** [10 November 2023 11:43 UTC](https://discourse.nodered.org/t/configuration-node-inside-subflow-packaged-as-module/82755/1 "2023-11-10T11:43:18Z")

</div>

Hi, I am developing a custom node via [packaging a subflow as a module](https://nodered.org/docs/creating-nodes/subflow-modules), however I am having one problem, inside this subflow I am using the set of [Redis nodes](https://flows.nodered.org/node/node-red-contrib-redis) and in order to properly use this nodes, a Redis config node is necessary in order to prepare the conectivity to Redis.  
When this subflow is still just a subflow everything works fine, however when I package my subflow as a module and import it via "npm i", this config node is not added, even when it is present on the json file of the subflow.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/50f9676ec01e15c0afbfd8f46570b9ea79cd3c46.png)  
The image indicates that the "server" is the id of the config node present on the json file.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/3/e3d487079e6a8621c36661cb95e81f83418761de.png)

So, how can I package this config node inside my subflow alongside all the other nodes?  
Thanks

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [10 November 2023 14:36 UTC](https://discourse.nodered.org/t/configuration-node-inside-subflow-packaged-as-module/82755/2 "2023-11-10T14:36:18Z")

</div>

I think you need to set the scope of the config node to the subflow to ensure it gets exported properly.

In the editor dialog for the config node, in the footer should be a drop-down select box where you can set the scope. Select your subflow from that list - at which point it will only be available to the nodes inside the subflow.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 January 2024 14:37 UTC](https://discourse.nodered.org/t/configuration-node-inside-subflow-packaged-as-module/82755/3 "2024-01-09T14:37:06Z")

</div>

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