New Node-Red Install - "Dashboard Undefined"

Hey All,
I'm migrating my setup from
From: Raspberry Pi 4, 4G running on an SD card
To: Raspberry Pi 4, 8G running on a flash drive

I've got everything set up except when I try to look at the dashboard which is just a blank page titled "undefined"

How can I get this new dashboard to render?
Thanks
Rich

Show us the output when you run

node-red-stop
node-red-start

Hmm, I see a couple of errors but not sure how to fix them

 node-red-start

Start Node-RED

Once Node-RED has started, point a browser at http://192.168.1.154:1880
On Pi Node-RED works better with the Firefox or Chrome browser

Use   node-red-stop                          to stop Node-RED
Use   node-red-start                         to start Node-RED again
Use   node-red-log                           to view the recent log output
Use   sudo systemctl enable nodered.service  to autostart Node-RED at every boot
Use   sudo systemctl disable nodered.service to disable autostart on boot

To find more nodes and example flows - go to http://flows.nodered.org

Starting as a systemd service.
8 Aug 12:43:10 - [info]
Welcome to Node-RED
===================
8 Aug 12:43:10 - [info] Node-RED version: v3.0.2
8 Aug 12:43:10 - [info] Node.js  version: v16.20.1
8 Aug 12:43:10 - [info] Linux 5.10.103-v7l+ arm LE
8 Aug 12:43:12 - [info] Loading palette nodes
8 Aug 12:43:14 - [info] UI started at /ui
8 Aug 12:43:16 - [info] Dashboard version 3.5.0 started at /ui
8 Aug 12:43:17 - [warn] ------------------------------------------------------
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_button] 'ui_button' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_switch] 'ui_switch' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_slider] 'ui_slider' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_numeric] 'ui_numeric' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_text_input] 'ui_text_input' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_text] 'ui_text' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_gauge] 'ui_gauge' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_chart] 'ui_chart' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_toast] 'ui_toast' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_template] 'ui_template' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_link] 'ui_link' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] [node-red-dashboard/ui_tab] 'ui_tab' already registered by module node-red-contrib-ui_j
8 Aug 12:43:17 - [warn] ------------------------------------------------------
8 Aug 12:43:17 - [info] Settings file  : /home/pi/.node-red/settings.js
8 Aug 12:43:17 - [info] Context store  : 'default' [module=memory]
8 Aug 12:43:17 - [info] User directory : /home/pi/.node-red
8 Aug 12:43:17 - [warn] Projects disabled : editorTheme.projects.enabled=false
8 Aug 12:43:17 - [info] Flows file     : /home/pi/.node-red/flows.json
(node:1654) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
8 Aug 12:43:17 - [info] Server now running at http://127.0.0.1:1880/
8 Aug 12:43:17 - [warn] Using unencrypted credentials
8 Aug 12:43:17 - [info] +-----------------------------------------------------
8 Aug 12:43:17 - [info] | uibuilder v6.1.0 initialised
8 Aug 12:43:17 - [info] | root folder: /home/pi/.node-red/uibuilder
8 Aug 12:43:17 - [info] | Using Node-RED's webserver at:
8 Aug 12:43:17 - [info] |   http://0.0.0.0:1880/
8 Aug 12:43:17 - [info] | Installed packages:
8 Aug 12:43:17 - [info] +-----------------------------------------------------
8 Aug 12:43:17 - [info] Starting flows
8 Aug 12:43:17 - [error] [dashbored-dashbored:e7b73ba48e19aee1] TypeError: Cannot read properties of null (reading 'addDashbored')
8 Aug 12:43:17 - [info] Started flows
8 Aug 12:43:17 - [info] [tasmota-mqtt-broker:6e9362666c472291] Connected to broker: mqtt://192.168.1.154:1883
8 Aug 12:43:17 - [info] [mqtt-broker:1a947cf4658331dc] Connected to broker: mqtt://192.168.1.154:1883


 node-red-stop
Stop Node-RED

Use   node-red-start   to start Node-RED again

Are you using uibuilder as well as the standard dashboard?

Can you show us your package.json file please.

When copying output please try and get the complete lines.

I am not using ui_builder. I removed it. Restarted. Same behavior.

package.json

 cat package.json
{
  "name": "node-red-project",
  "description": "initially created for you by Node-RED 3.0.2",
  "version": "0.0.1",
  "private": true,
  "dependencies": {
    "@node-red-contrib-themes/theme-collection": "~3.0.6",
    "node-red-contrib-astrodata": "~0.0.4",
    "node-red-contrib-bigtimer": "~2.8.5",
    "node-red-contrib-buffer-parser": "^3.2.2",
    "node-red-contrib-calc": "~1.0.5",
    "node-red-contrib-clock-generator": "~1.2.0",
    "node-red-contrib-controltimer": "~0.3.0",
    "node-red-contrib-countdown": "~1.3.2",
    "node-red-contrib-dashbored": "~1.1.4",
    "node-red-contrib-ds18b20": "~0.0.3",
    "node-red-contrib-ewelink": "~2.0.0",
    "node-red-contrib-light-transition": "~1.8.1",
    "node-red-contrib-moment": "~5.0.0",
    "node-red-contrib-play-audio": "^2.5.0",
    "node-red-contrib-play-audio-fast": "~0.0.1",
    "node-red-contrib-play-audio-file": "~0.0.1",
    "node-red-contrib-random-output": "~0.1.1",
    "node-red-contrib-rotate-logger": "~0.0.3",
    "node-red-contrib-sonoff-tasmota": "~3.0.0",
    "node-red-contrib-suncron": "~1.6.2",
    "node-red-contrib-tasmota": "~0.9.12",
    "node-red-contrib-time-controller": "~0.0.17",
    "node-red-contrib-timerswitch": "~1.4.0",
    "node-red-contrib-twc-weather": "~0.7.0",
    "node-red-contrib-ui_j": "~1.2.19",
    "node-red-contrib-ui-clock": "~1.0.2",
    "node-red-contrib-ui-digital-clock": "~1.0.0",
    "node-red-contrib-weather": "~0.1.2",
    "node-red-contrib-zigbee2mqtt-devices": "~0.19.6",
    "node-red-dashboard": "~3.5.0",
    "node-red-mysql-r2": "~1.0.0",
    "node-red-node-arduino": "~0.3.1",
    "node-red-node-pi-gpio": "^2.0.5",
    "node-red-node-ping": "^0.3.3",
    "node-red-node-random": "^0.4.1",
    "node-red-node-serialport": "^1.0.3",
    "node-red-node-smooth": "^0.1.2",
    "node-red-node-ui-microphone": "~0.3.1",
    "node-red-node-ui-table": "~0.4.3",
    "sqlite-plugin-red": "~0.0.3",
    "thingzi-logic-timers": "~1.2.5",
    "ttb-ifttt": "~0.1.0"
  }
}

When I look at the installed pallets The node-red-dashboard shows the following status

node-red-dashboard
3.5.0
type_already_registered
type_already_registered
type_already_registered
type_already_registered
type_already_registered
type_already_registered
type_already_registered
type_already_registered
type_already_registered
type_already_registered
type_already_registered
type_already_registered

I hope my pasting is cleaner...

I tried to uninstall and reinstall node-red-dashboard but the pallet manager says it's "in use" with no option to uninstall. I disabled all of the flows and tried again, same results.

What is that?

Did you bring package.json across from the old system?

If not then you should have. I suggest you delete the folder .node-red/node_modules, get package.json from the old system then go into the .node-red folder and run
npm install
That will install all the nodes you had before.

Colin, you are a gift to the Node-Red community. Much gratitude. Thanks once again!

1 Like

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