# Packaging a Subflow as a module, missing broker configuration

**URL:** <https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485>\
**Category:** General\
**Created:** [20 December 2021 14:36 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485 "2021-12-20T14:36:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MohsenZamany](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mohsenzamany/32/52907_2.png) [@MohsenZamany](https://discourse.nodered.org/u/MohsenZamany)\
**Post date:** [20 December 2021 14:36 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/1 "2021-12-20T14:36:06Z")

</div>

i'm using Packaging a Subflow as a module, but after install node (subflow here), i get a "missing broker configuration" error, my subflow has mqtt in and mqtt-broker (configuration node)

---

<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:** [20 December 2021 14:37 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/2 "2021-12-20T14:37:03Z")

</div>

Hi @MohsenZamany

Did you include the mqtt-broker config node in the subflow when you packaged it?

---

<div class="post-metadata">

**Author:** ![MohsenZamany](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mohsenzamany/32/52907_2.png) [@MohsenZamany](https://discourse.nodered.org/u/MohsenZamany)\
**Post date:** [21 December 2021 03:01 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/3 "2021-12-21T03:01:36Z")

</div>

yes, i think this problem ralated to ids, my subflow.json is:

```auto
{
  "id": "e9afd2f7286c724f",
  "type": "subflow",
  "name": "test700",
  "info": "",
  "category": "Test Eternet",
  "in": [
    {
      "x": 160,
      "y": 220,
      "wires": [
        {
          "id": "7fe40063af82ef30"
        }
      ]
    }
  ],
  "out": [
    {
      "x": 620,
      "y": 80,
      "wires": [
        {
          "id": "0ed5a9b77ecac697",
          "port": 0
        }
      ]
    }
  ],
  "env": [],
  "meta": {},
  "color": "#663D97",
  "flow": [
    {
      "id": "0ed5a9b77ecac697",
      "type": "mqtt in",
      "z": "e9afd2f7286c724f",
      "name": "",
      "topic": "subscribeTopic",
      "qos": "2",
      "datatype": "auto",
      "broker": "f7f897a9c80557c2",
      "nl": false,
      "rap": true,
      "rh": 0,
      "inputs": 0,
      "x": 200,
      "y": 120,
      "wires": [
        []
      ]
    },
    {
      "id": "7fe40063af82ef30",
      "type": "mqtt out",
      "z": "e9afd2f7286c724f",
      "name": "",
      "topic": "subscribeTopic",
      "qos": "",
      "retain": "",
      "respTopic": "",
      "contentType": "",
      "userProps": "",
      "correl": "",
      "expiry": "",
      "broker": "f7f897a9c80557c2",
      "x": 380,
      "y": 200,
      "wires": []
    },
    {
      "id": "f7f897a9c80557c2",
      "type": "mqtt-broker",
      "z": "e9afd2f7286c724f",
      "name": "",
      "broker": "localhost",
      "port": "1883",
      "clientid": "",
      "autoConnect": true,
      "usetls": false,
      "protocolVersion": "4",
      "keepalive": "60",
      "cleansession": true,
      "birthTopic": "",
      "birthQos": "0",
      "birthPayload": "",
      "birthMsg": {},
      "closeTopic": "",
      "closeQos": "0",
      "closePayload": "",
      "closeMsg": {},
      "willTopic": "",
      "willQos": "0",
      "willPayload": "",
      "willMsg": {},
      "sessionExpiry": ""
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![MohsenZamany](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mohsenzamany/32/52907_2.png) [@MohsenZamany](https://discourse.nodered.org/u/MohsenZamany)\
**Post date:** [21 December 2021 04:16 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/4 "2021-12-21T04:16:05Z")

</div>

Hi knolleary, thanks for reply, yes i did.

---

<div class="post-metadata">

**Author:** ![MohsenZamany](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mohsenzamany/32/52907_2.png) [@MohsenZamany](https://discourse.nodered.org/u/MohsenZamany)\
**Post date:** [22 December 2021 10:02 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/5 "2021-12-22T10:02:39Z")

</div>

Hi, could you find out the solution?

---

<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:** [22 December 2021 10:52 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/6 "2021-12-22T10:52:49Z")

</div>

Sorry, I'm not sure when I'll get a chance to look at this in detail as I'm away from my laptop for a few days.

---

<div class="post-metadata">

**Author:** ![MohsenZamany](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mohsenzamany/32/52907_2.png) [@MohsenZamany](https://discourse.nodered.org/u/MohsenZamany)\
**Post date:** [22 December 2021 11:09 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/7 "2021-12-22T11:09:49Z")

</div>

Wish you a great holiday, thanks a lot.

---

<div class="post-metadata">

**Author:** ![lu4t](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lu4t/32/32276_2.png) [@lu4t](https://discourse.nodered.org/u/lu4t)\
**Post date:** [6 January 2022 01:21 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/8 "2022-01-06T01:21:39Z")

</div>

did you find a solution for this?. I am getting the same error.

---

<div class="post-metadata">

**Author:** ![MohsenZamany](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mohsenzamany/32/52907_2.png) [@MohsenZamany](https://discourse.nodered.org/u/MohsenZamany)\
**Post date:** [8 January 2022 12:53 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/9 "2022-01-08T12:53:06Z")

</div>

@lu4t no, ☹

---

<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 March 2022 12:53 UTC](https://discourse.nodered.org/t/packaging-a-subflow-as-a-module-missing-broker-configuration/55485/10 "2022-03-09T12:53:42Z")

</div>

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