node-red-ui-nodes: ui-table does not work (Debian Buster)
Which node are you reporting an issue on?
node-red-ui-table
What are the steps to reproduce?
See below.
What happens?
No data is shown in the ui and the ui-tab containing the table is not shown correctly.
Please tell us about your environment:
- Node-RED version: v1.0.3
- node.js version: v12.16.1
- npm version: 6.13.4
- Platform/OS: Lenovo laptop running Debian Buster
- Browser: Any. Main tests done using Microsoft Edge Dev.
Details
Welcome to Node-RED
===================
26 Feb 16:00:03 - [info] Node-RED version: v1.0.3
26 Feb 16:00:03 - [info] Node.js version: v12.16.1
26 Feb 16:00:03 - [info] Linux 4.19.0-8-amd64 x64 LE
26 Feb 16:00:03 - [info] Loading palette nodes
26 Feb 16:00:03 - [info] Settings file : /home/home/nrmain/data/settings.js
26 Feb 16:00:04 - [info] HTTP Static : /home/home/nrmain/public
26 Feb 16:00:04 - [info] Context store : 'default' [module=memory]
26 Feb 16:00:04 - [info] Context store : 'file' [module=localfilesystem]
26 Feb 16:00:04 - [info] User directory : /home/home/nrmain/data
26 Feb 16:00:04 - [warn] Projects disabled : editorTheme.projects.enabled=false
26 Feb 16:00:04 - [info] Flows file : /home/home/nrmain/data/nrmain_flows.json
26 Feb 16:00:04 - [info] Server now running at http://127.0.0.1:1880/red/
26 Feb 16:00:04 - [info] Starting flows
26 Feb 16:00:04 - [info] Started flows
26 Feb 16:00:45 - [info] Installing module: node-red-dashboard, version: 2.19.4
26 Feb 16:00:47 - [info] Installed module: node-red-dashboard
26 Feb 16:00:47 - [info] Dashboard version 2.19.4 started at /ui
ui-table installed:
26 Feb 16:04:52 - [info] Installing module: node-red-node-ui-table, version: 0.2.2
26 Feb 16:04:53 - [info] Installed module: node-red-node-ui-table
26 Feb 16:04:53 - [info] Added node types:
26 Feb 16:04:53 - [info] - node-red-node-ui-table:ui_table
Imported the simple example, changed the tabname to home2:
and deployed:
26 Feb 16:08:13 - [info] Stopping modified nodes
26 Feb 16:08:13 - [info] Stopped modified nodes
26 Feb 16:08:13 - [info] Starting modified nodes
Error: Cannot find module 'node-red-dashboard'
at Object.requireModule [as require] (/home/home/nrmain/node_modules/@node-red/registry/lib/util.js:48:19)
at new TableNode (/home/home/nrmain/data/node_modules/node-red-node-ui-table/node.js:48:30)
at Object.createNode (/home/home/nrmain/node_modules/@node-red/runtime/lib/nodes/flows/util.js:483:31)
at Flow.start (/home/home/nrmain/node_modules/@node-red/runtime/lib/nodes/flows/Flow.js:189:48)
at start (/home/home/nrmain/node_modules/@node-red/runtime/lib/nodes/flows/index.js:329:33)
at /home/home/nrmain/node_modules/@node-red/runtime/lib/nodes/flows/index.js:196:21 {
code: 'MODULE_NOT_FOUND'
}
26 Feb 16:08:13 - [info] Started modified nodes
Result is that no second ui tab is shown. Manually move the table card to the main ui tab and redeploy. The table still isn’t shown even after reloading the page and re-injecting the data.
Delete the flow and the tabs/cards except a single “Home” ui tab. Redeploy. Then add example #2 flow and deploy:
Now NOTHING shows in the dashboard other than the default welcome to the dashboard.
Go back to start. Reset everything, reinstall Dashboard. Add nodes 2 two different ui tabs and confirm everything works. Reinstall ui-table. Add manually to flow and set to use a new, manually created ui tab and use same data input as in the simple example. On deployment, I get the same cannot find module error and the new ui tab never appears.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (9 by maintainers)
(as usual)… working fine here… The line it is complaining about is
Wondering if it’s anything to do with the way you load node-red locally ?