# \[New Release\] node-red-contrib-uibuilder - v3.1.3

**URL:** <https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277>\
**Category:** Share Your Nodes\
**Created:** [17 January 2021 17:48 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277 "2021-01-17T17:48:27Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Roaders](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/roaders/32/11282_2.png) [@Roaders](https://discourse.nodered.org/u/Roaders)\
**Post date:** [24 January 2021 15:55 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277/21 "2021-01-24T15:55:17Z")

</div>

I'm not at a computer at the moment so can't look into this properly today... But... Did you try `require.resolve(Vue\deep-path\to-what-I-need)`

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 January 2021 15:59 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277/22 "2021-01-24T15:59:48Z")

</div>

We are going off at a tangent here. My main issue is the other one right now and that doesn't need resolve, it needs a way to install one package from the installation of another.

But to answer your question, yes. It is actually documented in the npm documentation that resolve requires the package to have main defined.

Of course, npm moves on so who knows whether this is still an issue. All I know is that it wasn't reliable and I found several well-known front-end libraries that didn't have it and so couldn't be resolved. It drove me made for a while trying to track that down.

---

<div class="post-metadata">

**Author:** ![2501514472](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/2501514472/32/35939_2.png) [@2501514472](https://discourse.nodered.org/u/2501514472)\
**Post date:** [26 January 2021 08:15 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277/23 "2021-01-26T08:15:24Z")

</div>

![360截图1872012010388102](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/c/fc2842dc863c0f3d4ac875d1672b6d643ae95337.jpeg) \> Blockquote  
我想问一下 admin输出的数据 经过函数处理后 admin能否获得函数返回的数据，如果能，该如何获得

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [26 January 2021 09:14 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277/24 "2021-01-26T09:14:29Z")

</div>

The majority of the forum users do not speak Chinese.  
You will get better support if you use the English language.  
Most non-english speakers use [Google Translate](https://translate.google.com/).

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 January 2021 09:45 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277/25 "2021-01-26T09:45:11Z")

</div>

> [@2501514472](#):
>
> 我想问一下 admin输出的数据 经过函数处理后 admin能否获得函数返回的数据，如果能，该如何获得

Google Translate gave me this:

> I want to ask whether the data output by admin can be obtained by the function after the function is processed, and if so, how can it be obtained?

You have already seen that you can loop the messages returned by uibuilder back to the input. To get a message out of your front-end code, you use the `uibuilder.send(msg)` function in your front-end code.

The second output from the uibuilder node automatically sends messages based on events. The key ones being when a browser tab connects and disconnects. In the future, there will be others related to security.

---

<div class="post-metadata">

**Author:** ![Roaders](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/roaders/32/11282_2.png) [@Roaders](https://discourse.nodered.org/u/Roaders)\
**Post date:** [26 January 2021 16:21 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277/26 "2021-01-26T16:21:25Z")

</div>

Ok, I setup a test locally and I'm afraid that I couldn't get `npm install` within a post install script to work either.  
If this was a normal package install from the command line you could have a post install script that printed a message telling the user to run something like `npx setup-uibuilder-example` which would do all that was necessary. The disadvantage of a post install script is of course that the dependencies will be re-added each time the package is updated which isn't great.  
Another option might be to do the install from the node red ui. It could figure out if vue is needed and offer to install it in the property panel. That wouldn't matter if it's async.

Sorry I couldn't be more help.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 January 2021 20:15 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277/27 "2021-01-26T20:15:42Z")

</div>

> [@Roaders](#):
>
> I'm afraid that I couldn't get `npm install` within a post install script to work either.

Phew, well at least it wasn't just me!

> [@Roaders](#):
>
> package install from the command line ... telling the user to run ...

Indeed. What I may do is to build something into uibuilder itself such that when you add your first node to a flow, it gives you a notification. I might even be able to drive the install at that point - after all, I already have an installed built into uibuilder. I would just need to make sure you don't keep getting the message.

> [@Roaders](#):
>
> The disadvantage of a post install script is of course that the dependencies will be re-added each time the package is updated which isn't great.

That is true though it could be worked around.

> [@Roaders](#):
>
> Another option might be to do the install from the node red ui. It could figure out if vue is needed and offer to install it in the property panel. That wouldn't matter if it's async.

Oops, I should have read to the end of your post before my previous bit of text saying the same thing 😄

> [@Roaders](#):
>
> Sorry I couldn't be more help.

Not a problem at all, I'm pleased that someone took the trouble to look. At least now I know to stop wasting my time and focus on something more productive. Thanks.

[Previous page](https://discourse.nodered.org/t/new-release-node-red-contrib-uibuilder-v3-1-3/39277.md?page=1)
