# Failed to load 'node-red-dashboard/ui\_base Syntax error

**URL:** https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844
**Category:** General
**Created:** [4 June 2019 13:39 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844 "2019-06-04T13:39:45Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [4 June 2019 13:39 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/1 "2019-06-04T13:39:45Z")

</div>

For some reason I've had the following "Failed to load 'node-red-dashboard" error appear for two dashboard items, one for ui\_switch and one for us\_base and as a result I cannot seem to access the dashboard now

I was able to disable the ui\_switch one via the palette, but I've been unable to disable the ui\_base, it just does not change Any ideas ?

![noderederror](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/df9dac5462149a48d7163a159a2981df14750157.jpeg)

Here's the view within the palette, where you can see their statuses

 ![noderederror2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f7023ae6544005671e3a52e3e4cee62264016a14.jpeg)

---

<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: [4 June 2019 14:00 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/2 "2019-06-04T14:00:10Z")

</div>

What version of node.js and node-red are you using?

---

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [4 June 2019 14:18 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/3 "2019-06-04T14:18:05Z")

</div>

Hi Nick, thanks for responding.

I’m running this in a Docker Container, ( looking in Portainer it’s [nodered/node-red-docker:latest] ). - Is there a way to tell ?

---

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [4 June 2019 14:41 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/4 "2019-06-04T14:41:37Z")

</div>

I've also just noticed that if I open a function to see the contents, do not make any changes - but at some point later hit deploy, I receive a message to say that those function were not properly configured  
 ![noderederror3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b06b38fa8e332fb44cdf50d50cd381f4d154f76d.jpeg)

---

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [5 June 2019 08:13 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/5 "2019-06-05T08:13:08Z")

</div>

Its weird, the issue seems to be more prevalent on a windows machine via IE. Accessing and redeploying the function nodes via Safari on my iPad resolved the issue with them.

Very strange! And for some reason I can access the dashboard via Safari, but the dashboard option is missing on a Windows machine..

The dashboard also has changed its default colours - from the black/grey and green to white and light blue - see below..

Before

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f7b406ca005c4f318c22723f471e5dafbfdba303.jpeg)

Now

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a3dac4ea8c05bb6802ce3f6cfc21bba1ab486687.jpeg)

I’ll keep an eye out, but somethings occurred and I’m not sure what..

Could that colour change be related to the ui\_base error ?

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [5 June 2019 09:11 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/6 "2019-06-05T09:11:29Z")

</div>

The bottom is just the default light theme and the top the default dark theme. You should try Edge browser on windows as that has much better JavaScript support.

---

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [6 June 2019 21:07 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/7 "2019-06-06T21:07:03Z")

</div>

> [@dceejay](#):
>
> The bottom is just the default light theme and the top the default dark theme.

Doh ! Thanks @dceejay 😊

---

<div class="post-metadata">

### Author: ![mauricio](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mauricio](https://discourse.nodered.org/u/mauricio)
#### Post date: [7 June 2019 16:49 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/8 "2019-06-07T16:49:18Z")

</div>

Hello

I've installed node-red v0.20.5 and node.js v6.15.0 on an A13 olimex arm board, with OS Debian Wheezy 3.4.90+

I'm receiving same message

I've tryed installing both throug node-red UI and npm cli

☹

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [7 June 2019 18:49 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/9 "2019-06-07T18:49:41Z")

</div>

@mauricio as of version 0.20.0 node.js is required to be at 8.x or 10.x

---

<div class="post-metadata">

### Author: ![mauricio](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mauricio](https://discourse.nodered.org/u/mauricio)
#### Post date: [8 June 2019 13:52 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/10 "2019-06-08T13:52:51Z")

</div>

Hello, I've just installed node v6.15.0 because OS (armhf Wheezy) lacking some libraries

Hopefully soon I can try installing 10.x

Thanks

---

<div class="post-metadata">

### Author: ![mauricio](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mauricio](https://discourse.nodered.org/u/mauricio)
#### Post date: [12 June 2019 17:07 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/11 "2019-06-12T17:07:25Z")

</div>

Hello

I've removed node.js and nodered

And reinstalled just downloading and unpacking [https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-armv7l.tar.xz](https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-armv7l.tar.xz) to /usr/local/lib/nodejs as [https://github.com/nodejs/help/wiki/Installation](https://github.com/nodejs/help/wiki/Installation) states

then export PATH=/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin:$PATH

And sudo npm -i -g --unsafe-perm node-red

I can do node -v  
v10.16.0

and npm -v  
6.9.0

# also, node-red Welcome to Node-RED

12 Jun 12:54:06 - [info] Node-RED version: v0.20.5  
12 Jun 12:54:06 - [info] Node.js version: v10.16.0  
12 Jun 12:54:06 - [info] Linux 3.4.90+ arm LE  
12 Jun 12:54:08 - [info] Loading palette nodes  
12 Jun 12:54:15 - [warn] rpi-gpio : Raspberry Pi specific node set inactive  
12 Jun 12:54:16 - [warn] rpi-gpio : Cannot find Pi RPi.GPIO python library  
12 Jun 12:54:16 - [info] Dashboard version 2.15.4 started at /ui  
12 Jun 12:54:18 - [info] Settings file : /home/mauricio/.node-red/settings.js  
12 Jun 12:54:18 - [info] Context store : 'default' [module=memory]  
12 Jun 12:54:18 - [info] User directory : /home/mauricio/.node-red  
12 Jun 12:54:18 - [warn] Projects disabled : editorTheme.projects.enabled=false  
12 Jun 12:54:18 - [info] Flows file : /home/mauricio/.node-red/flows\_puma.json  
12 Jun 12:54:18 - [warn]

But still no dashboard, installing it with

sudo npm i -g node-red-dashboard

visit broker:1880 page, receiving same messages regarding

Failed to load 'node-red-dashboard/ui\_base'  
SyntaxError: Unexpected token )

Failed to load 'node-red-dashboard/ui\_switch'  
SyntaxError: Unexpected token )

??

Please any advice ?

Thanks

---

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [12 June 2019 18:44 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/12 "2019-06-12T18:44:23Z")

</div>

Hi, what browser are you using ?

I’ve noticed different experiences between the browsers ?

Maybe unrelated, but worth a look at loading Node Red in a few browsers.

---

<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: [12 June 2019 20:17 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/14 "2019-06-12T20:17:13Z")

</div>

Did you run  
`npm rebuild`  
as required after a change of nodejs version? I don't know if it will fix the problem you are seeing but it should be done anyway.  
[https://nodered.org/docs/getting-started/upgrading](https://nodered.org/docs/getting-started/upgrading)  
If that doesn't fix it then uninstall node-red-dashboard and re-install it.

---

<div class="post-metadata">

### Author: ![mauricio](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mauricio](https://discourse.nodered.org/u/mauricio)
#### Post date: [13 June 2019 13:38 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/15 "2019-06-13T13:38:25Z")

</div>

Hello, well a bit older one : Chrome Versión 47.0.2526.106

I have a Dell PC with ubuntu 14.04

Thanks

---

<div class="post-metadata">

### Author: ![mauricio](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mauricio](https://discourse.nodered.org/u/mauricio)
#### Post date: [13 June 2019 13:40 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/16 "2019-06-13T13:40:43Z")

</div>

No I did not perform npm rebuild, either read that upgrading page, sorry me

I will and inform

Thanks

---

<div class="post-metadata">

### Author: ![mauricio](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mauricio](https://discourse.nodered.org/u/mauricio)
#### Post date: [13 June 2019 14:23 UTC](https://discourse.nodered.org/t/failed-to-load-node-red-dashboard-ui-base-syntax-error/11844/17 "2019-06-13T14:23:07Z")

</div>

ok, I did

mauricio@puma:~/.node-red$ sudo npm cache clean --force  
npm WARN using --force I sure hope you know what you are doing.

later

mauricio@puma:~/.node-red$ sudo npm install -g --unsafe-perm node-red

/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/node-red -\> /usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/red.js  
/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/node-red-pi -\> /usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/bin/node-red-pi

> bcrypt@3.0.5 install /usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt  
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download  
node-pre-gyp WARN Tried to download(404): [https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.5/bcrypt\_lib-v3.0.5-node-v64-linux-arm-glibc.tar.gz](https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.5/bcrypt_lib-v3.0.5-node-v64-linux-arm-glibc.tar.gz)  
node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.5 and node@10.16.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)  
make: Entering directory `/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node_modules/node-red/node_modules/bcrypt/build' CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o cc1plus: error: unrecognized command line option ‘-std=gnu++1y’ make: *** [Release/obj.target/bcrypt_lib/src/blowfish.o] Error 1 make: Leaving directory `/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt/build'  
gyp ERR! build error  
gyp ERR! stack Error: `make` failed with exit code: 2  
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/npm/node\_modules/node-gyp/lib/build.js:262:23)  
gyp ERR! stack at ChildProcess.emit (events.js:198:13)  
gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:248:12)  
gyp ERR! System Linux 3.4.90+  
gyp ERR! command "/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/node" "/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt/lib/binding/bcrypt\_lib.node" "--module\_name=bcrypt\_lib" "--module\_path=/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt/lib/binding" "--napi\_version=4" "--node\_abi\_napi=napi" "--napi\_build\_version=0" "--node\_napi\_label=node-v64"  
gyp ERR! cwd /usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt  
gyp ERR! node -v v10.16.0  
gyp ERR! node-gyp -v v3.8.0  
gyp ERR! not ok  
node-pre-gyp ERR! build error  
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/node /usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt/lib/binding/bcrypt\_lib.node --module\_name=bcrypt\_lib --module\_path=/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt/lib/binding --napi\_version=4 --node\_abi\_napi=napi --napi\_build\_version=0 --node\_napi\_label=node-v64' (1)  
node-pre-gyp ERR! stack at ChildProcess. (/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/node-pre-gyp/lib/util/compile.js:83:29)  
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)  
node-pre-gyp ERR! stack at maybeClose (internal/child\_process.js:982:16)  
node-pre-gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:259:5)  
node-pre-gyp ERR! System Linux 3.4.90+  
node-pre-gyp ERR! command "/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/node" "/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"  
node-pre-gyp ERR! cwd /usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt  
node-pre-gyp ERR! node -v v10.16.0  
node-pre-gyp ERR! node-pre-gyp -v v0.12.0  
node-pre-gyp ERR! not ok  
Failed to execute '/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/node /usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt/lib/binding/bcrypt\_lib.node --module\_name=bcrypt\_lib --module\_path=/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/lib/node\_modules/node-red/node\_modules/bcrypt/lib/binding --napi\_version=4 --node\_abi\_napi=napi --napi\_build\_version=0 --node\_napi\_label=node-v64' (1)  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.5 (node\_modules/node-red/node\_modules/bcrypt):  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.5 install: `node-pre-gyp install --fallback-to-build`  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

- node-red@0.20.5  
updated 1 package in 170.503s

As you see, lot of errors, but broker:1880 page still works, and flows works, sadly I still receive the message regarding dashboard unexpected token

finally I uninstalled and reinstalled node-red-dashboard , error persists

Please note that I'm using precompiled for armv7l node-v10.16

Again thanks
