# To import a flow without dashboard installed

**URL:** <https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963>\
**Category:** General\
**Tags:** dashboard-2\
**Created:** [17 December 2024 15:00 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963 "2024-12-17T15:00:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![old-grumpy](https://avatars.discourse-cdn.com/v4/letter/o/e274bd/32.png) [@old-grumpy](https://discourse.nodered.org/u/old-grumpy)\
**Post date:** [17 December 2024 15:00 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/1 "2024-12-17T15:00:20Z")

</div>

I have saved the flows from a running nodered. now i want to import that flow on nodered without dashboard (want to start on dashboard-2) now it say 🙂 Error: TypeError: v is undefined  
How to correct this ? Or possible to import, even with mystery-empty nodes ?

Or a way to avoid this ? To save a Neutral flow so it import on any node red?

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [17 December 2024 15:14 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/2 "2024-12-17T15:14:53Z")

</div>

You can import the full flow then delete each unknown nodes (missing dashboard types).

Without the contents of the flow it is difficult to say what generated the error.

---

<div class="post-metadata">

**Author:** ![old-grumpy](https://avatars.discourse-cdn.com/v4/letter/o/e274bd/32.png) [@old-grumpy](https://discourse.nodered.org/u/old-grumpy)\
**Post date:** [17 December 2024 15:38 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/3 "2024-12-17T15:38:37Z")

</div>

@GogoVega I try that ,it import nothing after displaying the error,all empty.

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [17 December 2024 15:57 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/4 "2024-12-17T15:57:20Z")

</div>

So your flow is corrupted. Where does it come from?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 December 2024 15:59 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/5 "2024-12-17T15:59:51Z")

</div>

> [@old-grumpy](#):
>
> Error: TypeError: v is undefined

When and where exactly do you see that error?

If you watch the node-red log while you import, what do you see?

---

<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:** [17 December 2024 16:00 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/6 "2024-12-17T16:00:47Z")

</div>

Hi @old-grumpy

What version of Node-RED are you importing into?

In theory, any valid flow should import into Node-RED; especially if its one you've exported from another instance and not made any manual modifications.

The error `Error: TypeError: v is undefined` rings a bell ... I'll see if I can remember where from...

---

<div class="post-metadata">

**Author:** ![old-grumpy](https://avatars.discourse-cdn.com/v4/letter/o/e274bd/32.png) [@old-grumpy](https://discourse.nodered.org/u/old-grumpy)\
**Post date:** [17 December 2024 16:02 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/7 "2024-12-17T16:02:02Z")

</div>

It come from a pi-1 exported it to featherpad then imported it to a linux lapdtop no problem.Now i want to do it on a pi-4 and got this.

---

<div class="post-metadata">

**Author:** ![old-grumpy](https://avatars.discourse-cdn.com/v4/letter/o/e274bd/32.png) [@old-grumpy](https://discourse.nodered.org/u/old-grumpy)\
**Post date:** [17 December 2024 16:07 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/8 "2024-12-17T16:07:50Z")

</div>

Node-RED v4.0.6 fresh installed

---

<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:** [17 December 2024 16:09 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/9 "2024-12-17T16:09:57Z")

</div>

Can you share you flow file with me directly so I can investigate? You can email it to `nick.oleary@gmail.com`. There were a number of changes in 4.0.6 around how the editor imports flows - want to ensure this isn't an issue with those changes.

---

<div class="post-metadata">

**Author:** ![old-grumpy](https://avatars.discourse-cdn.com/v4/letter/o/e274bd/32.png) [@old-grumpy](https://discourse.nodered.org/u/old-grumpy)\
**Post date:** [17 December 2024 16:15 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/10 "2024-12-17T16:15:28Z")

</div>

I will mail it ,its a old flow to get the weather from openweathermap but the go supscription ☹ name "node--weer-oud"

Send

---

<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:** [17 December 2024 16:28 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/11 "2024-12-17T16:28:44Z")

</div>

Thanks for sharing your flow. I can confirm this is a regression in 4.0.6 (released yesterday, but not yet announced in case anyone is wondering...)

@GogoVega related to importing a flow with unknown types:

```auto
TypeError: Cannot read properties of undefined (reading 'defaults')
    at Object.importNodes [as import] (red.js?v=2160f8acfb0f:6810:68)
    at Object.importNodes (red.js?v=2160f8acfb0f:27831:42)
    at importNodes (red.js?v=2160f8acfb0f:45130:22)
    at HTMLDivElement.click (red.js?v=2160f8acfb0f:44272:33)
    at HTMLButtonElement.<anonymous> (vendor.js?v=2160f8acfb0f:10:176787)
    at HTMLButtonElement.dispatch (vendor.js?v=2160f8acfb0f:2:43090)

```

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [17 December 2024 16:35 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/12 "2024-12-17T16:35:49Z")

</div>

Mmm will take a look

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 December 2024 16:38 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/13 "2024-12-17T16:38:32Z")

</div>

@old-grumpy, in the meantime you should be able to install the previous version of node-red 4.0.5 by running  
`sudo npm install -g --unsafe-perm node-red@4.0.5`

Then restart node-red

---

<div class="post-metadata">

**Author:** ![old-grumpy](https://avatars.discourse-cdn.com/v4/letter/o/e274bd/32.png) [@old-grumpy](https://discourse.nodered.org/u/old-grumpy)\
**Post date:** [17 December 2024 16:43 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/14 "2024-12-17T16:43:33Z")

</div>

Ok will try that thanks Colin and GogoVega

OK that worked say imported 27 unrecognized node.

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [17 December 2024 16:47 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/15 "2024-12-17T16:47:49Z")

</div>

@knolleary, related to inputs/outputs check

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [17 December 2024 17:04 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/16 "2024-12-17T17:04:52Z")

</div>

> <https://github.com/node-red/node-red/pull/4997>
>
> \- \[x\] Bugfix (non-breaking change which fixes an issue)
> \- \[\] New feature (non-…breaking change which adds functionality)
> 
> \## Proposed changes
> 
> Fixes https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963.
> Introduced by #4808.
> 
> \`def\` can be undefined. The default definition is added directly to the node, so \`node.\_def\` must be used instead.
> 
> \## Checklist
> 
> \- \[x\] I have read the \[contribution guidelines\](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md)
> \- \[\] For non-bugfix PRs, I have discussed this change on the forum/slack team.
> \- \[x\] I have run \`npm run test\` to verify the unit tests pass
> \- \[\] I have added suitable unit tests to cover the new/changed functionality

---

<div class="post-metadata">

**Author:** ![old-grumpy](https://avatars.discourse-cdn.com/v4/letter/o/e274bd/32.png) [@old-grumpy](https://discourse.nodered.org/u/old-grumpy)\
**Post date:** [17 December 2024 17:06 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/17 "2024-12-17T17:06:17Z")

</div>

OK removed the old dash nodes. now i wonder how to remove the link to the old dash nodes see error i got Flows stopped due to missing node types.  
ui\_group  
ui\_tab  
Normaly you solve it by installing the flow but i do not want dashboard.

---

<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:** [17 December 2024 17:07 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/18 "2024-12-17T17:07:33Z")

</div>

@old-grumpy if you open the config nodes sidebar on the right of the editor, you should see the ui\_group and ui\_tab config nodes - showing as 'unknown'. Double click on each one to open the edit dialog and click the delete button to remove it.

---

<div class="post-metadata">

**Author:** ![old-grumpy](https://avatars.discourse-cdn.com/v4/letter/o/e274bd/32.png) [@old-grumpy](https://discourse.nodered.org/u/old-grumpy)\
**Post date:** [17 December 2024 17:17 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/19 "2024-12-17T17:17:34Z")

</div>

Ok that worked great.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 December 2024 21:01 UTC](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963/20 "2024-12-17T21:01:54Z")

</div>

> [@knolleary](#):
>
> Double click on each one to open the edit dialog and click the delete button to remove it.

I believe that you can also just select the configuration node and hit the Del key.

[Next page](https://discourse.nodered.org/t/to-import-a-flow-without-dashboard-installed/93963.md?page=2)
