# Error when loading "Extended example using the IIFE client (external)"

**URL:** https://discourse.nodered.org/t/error-when-loading-extended-example-using-the-iife-client-external/99748
**Category:** General
**Tags:** uibuilder
**Created:** [22 November 2025 08:58 UTC](https://discourse.nodered.org/t/error-when-loading-extended-example-using-the-iife-client-external/99748 "2025-11-22T08:58:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![fortunebizkit](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@fortunebizkit](https://discourse.nodered.org/u/fortunebizkit)
#### Post date: [22 November 2025 08:58 UTC](https://discourse.nodered.org/t/error-when-loading-extended-example-using-the-iife-client-external/99748/1 "2025-11-22T08:58:11Z")

</div>

Hi Folks,

I am new (noob) to node-red and trying out the uibuilder. I am also a noob to front end technologies.

I followed the steps under "A first-timers walkthrough" in this link ( [UIBUILDER Documentation v7](https://totallyinformation.github.io/node-red-contrib-uibuilder/#/walkthrough1))

I am doing this step:  
To improve this mostly blank page, re-open the node's settings again and change the _Template_ drop-down to "_Extended example using the IIFE client (external)_ ". Then click the "Load & Overwrite Files" button. You will get a warning that you should carefully read and if OK, click on the "OK, overwrite" button. Of course, if you don't want to overwrite things, click on the cancel button (which is the default).

However, i got this error:  
[uibuilder:adminapi:POST:replaceTemplate] Replace template error. Failed to copy template from 'totallyinformation/uib-extended-template' to '\Users######.node-red\uibuilder\test'. url=test, cmd=replaceTemplate, ERR=could not find commit hash for HEAD [UibFs:replaceTemplate]. url=test. ext-extended-iifeundefined

I have installations as below:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d1e6afae88dca6290e9815cae685103347b20e19.png)

Any help?

Thanks

---

<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: [22 November 2025 17:59 UTC](https://discourse.nodered.org/t/error-when-loading-extended-example-using-the-iife-client-external/99748/2 "2025-11-22T17:59:50Z")

</div>

> [@fortunebizkit](#):
>
> I am new (noob) to node-red

Welcome to the forum.

> [@fortunebizkit](#):
>
> trying out the uibuilder

Great! 😉

> [@fortunebizkit](#):
>
> I followed the steps under "A first-timers walkthrough"

Good place to start.

> [@fortunebizkit](#):
>
> However, i got this error:  
> [uibuilder:adminapi:POST:replaceTemplate] Replace template error. Failed to copy template from 'totallyinformation/uib-extended-template' to '\Users######.node-red\uibuilder\test'. url=test, cmd=replaceTemplate, ERR=could not find commit hash for HEAD [UibFs:replaceTemplate]. url=test. ext-extended-iifeundefined

I just tried it on my device, and it worked OK.

I wonder if you maybe need a GitHub login to use it? I didn't think so, but maybe I haven't tested that.

Another test would be to use a command line, create a new folder and cd to it.

Then, use the following command: `npm install totallyinformation/uib-extended-template`. It should simply tell you that 1 package has been added.

Then, if you already have git installed and working, try `git clone https://github.com/totallyinformation/uib-extended-template`. You should get something like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/1/a113ddd9e4176caf91b04ed0b5cd842bbe5b19d8.png)

If these work, then nothing local is blocking your access to the repo. If they don't work, please post the errors and we will see if we can see what is wrong.

* * *

Another thing to do is to run through some of the examples which you can access from the Node-RED import option.

---

<div class="post-metadata">

### Author: ![fortunebizkit](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@fortunebizkit](https://discourse.nodered.org/u/fortunebizkit)
#### Post date: [23 November 2025 03:05 UTC](https://discourse.nodered.org/t/error-when-loading-extended-example-using-the-iife-client-external/99748/3 "2025-11-23T03:05:55Z")

</div>

Hi Julian,

Thank you for your reply.

After reading your post, I think I need to install Git on my local machine hence I went ahead to install Git. After installation of Git, it works!

Thank you very much!

---

<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: [23 November 2025 12:27 UTC](https://discourse.nodered.org/t/error-when-loading-extended-example-using-the-iife-client-external/99748/4 "2025-11-23T12:27:13Z")

</div>

Ah, well thanks for raising this since I wasn't aware that the `degit` tool actually needed git to be installed!

I can now add some instructions and an automatic check and warning into the next release of UIBUILDER. 😃

I've also raised as an upstream issue for degit since this is not mentioned in the documentation as far as I can see. In fact, degit should NOT need a local git installation, it is supposed to work without. Possibly I have not configured it correctly. Unfortunately, the machines I use all have git installed so I missed this.

> **[GitHub - Rich-Harris/degit: Straightforward project scaffolding](https://github.com/Rich-Harris/degit)**
>
> Straightforward project scaffolding

Also noticing that degit has not been updated in a while so it might be time to change dependencies.

---

<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: [7 December 2025 12:27 UTC](https://discourse.nodered.org/t/error-when-loading-extended-example-using-the-iife-client-external/99748/5 "2025-12-07T12:27:28Z")

</div>

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