# Uibuilder - Socket.IO failed to load for NS

**URL:** <https://discourse.nodered.org/t/uibuilder-socket-io-failed-to-load-for-ns/65241>\
**Category:** Dashboard\
**Tags:** uibuilder\
**Created:** [17 July 2022 23:03 UTC](https://discourse.nodered.org/t/uibuilder-socket-io-failed-to-load-for-ns/65241 "2022-07-17T23:03:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheadehAnank](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@TheadehAnank](https://discourse.nodered.org/u/TheadehAnank)\
**Post date:** [17 July 2022 23:03 UTC](https://discourse.nodered.org/t/uibuilder-socket-io-failed-to-load-for-ns/65241/1 "2022-07-17T23:03:31Z")

</div>

I tried to update from a older 4.0 version of uibuilder, to the latest. the uibuilder nodes are reporting the following when node red is deployed, and unfortuately none of my html/css/js is rendering correctly anymore. This is a vue / bootstrap-vue project.

`Socket.IO middleware failed to load for NS - check that uibRoot/.config/sioMiddleware.js has a valid exported fn`

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [17 July 2022 23:27 UTC](https://discourse.nodered.org/t/uibuilder-socket-io-failed-to-load-for-ns/65241/2 "2022-07-17T23:27:11Z")

</div>

Hello .. i had this issue too when i first upgraded uibuilder from an older version.  
I believe the reason is that in the `.node-red\uibuilder\.config` folder your middleware files use older code that is no longer supported in v5.

If you havent used socket middlewares in your projects ..  
just rename each of the extensions of the js files to .js-template

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

---

<div class="post-metadata">

**Author:** ![TheadehAnank](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@TheadehAnank](https://discourse.nodered.org/u/TheadehAnank)\
**Post date:** [18 July 2022 00:48 UTC](https://discourse.nodered.org/t/uibuilder-socket-io-failed-to-load-for-ns/65241/3 "2022-07-18T00:48:49Z")

</div>

OK, Thanks. My node already had both sio\*.js & sio\*.js-template files, so I renamed the sio\*.js to sio\*.js-template2. That eliminated the debug error above.

Still not rendering any VueJS pages though, even the SimpleVueJS template isn't rendering.

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [18 July 2022 01:10 UTC](https://discourse.nodered.org/t/uibuilder-socket-io-failed-to-load-for-ns/65241/4 "2022-07-18T01:10:35Z")

</div>

> [@TheadehAnank](#):
>
> Still not rendering any VueJS pages though

Do you get any errors during Node red startup  
Any errors in your Browser's Dev tools ?

Have you checked in your uibuilder's node configuration .. in the Library tab that you have Vue2 and bootstrap-vue installed ?

Note: if you dont have those packages you'll have to install them (from the Library tab) but dont simply type `vue` because that will install vue3 which is now the default  
install `vue@2.7.7` since the SimpleVueJS is based on the Vue2 library (i think)

---

<div class="post-metadata">

**Author:** ![TheadehAnank](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@TheadehAnank](https://discourse.nodered.org/u/TheadehAnank)\
**Post date:** [18 July 2022 01:55 UTC](https://discourse.nodered.org/t/uibuilder-socket-io-failed-to-load-for-ns/65241/5 "2022-07-18T01:55:41Z")

</div>

Ahh, thank you again! I didn't realize vue3 was the default. Reverting back to Vue2 solved my issue! Hopefully I'll get some sleep tonight

---

<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:** [17 August 2022 01:55 UTC](https://discourse.nodered.org/t/uibuilder-socket-io-failed-to-load-for-ns/65241/6 "2022-08-17T01:55:43Z")

</div>

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