Code Monkey home page Code Monkey logo

Comments (15)

dceejay avatar dceejay commented on June 1, 2024 1

(as usual)... working fine here....
The line it is complaining about is

RED.require('node-red-dashboard')(RED);

Wondering if it's anything to do with the way you load node-red locally ?

from node-red-ui-nodes.

Christian-Me avatar Christian-Me commented on June 1, 2024

I gave it a try on a virtual box ubuntu 18.04.1 LTE - unfortunate I can reproduce the problem:
Fresh install of

  • node.js, 8.10.0
  • npm 0.34.0
  • node-red V1.0.3
  • dashboard version 2.19.4
  • ui-table version 0.2.2.

On my windows machines running 0.2.1 of ui-table all works fine.
Perhaps something happened between 0.2.2 and 0.2.1?

27 Feb 09:10:19 - [info] Starting flows
{ Error: Cannot find module 'node-red-dashboard'
    at Object.requireModule [as require] (/usr/local/lib/node_modules/node-red/node_modules/@node-red/registry/lib/util.js:48:19)
    at new TableNode (/home/cmeinert/.node-red/node_modules/node-red-node-ui-table/node.js:48:30)
    at Object.createNode (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/util.js:483:31)
    at Flow.start (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/Flow.js:189:48)
    at start (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/index.js:329:33)
    at stop.then.then (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/index.js:196:21)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7) code: 'MODULE_NOT_FOUND' }

from node-red-ui-nodes.

Christian-Me avatar Christian-Me commented on June 1, 2024

I was too fast, sorry just recognized that nodejs is quite old ... I do not use this machine very often ;)
updated nodejs to 13.9.0 ...

27 Feb 09:27:45 - [info] Node-RED Version: v1.0.3
27 Feb 09:27:45 - [info] Node.js  Version: v13.9.0
27 Feb 09:27:45 - [info] Linux 5.3.0-40-generic x64 LE

and here we go:
image

from node-red-ui-nodes.

dceejay avatar dceejay commented on June 1, 2024

so all ok for you ?

from node-red-ui-nodes.

Christian-Me avatar Christian-Me commented on June 1, 2024

Sorry not to be clear. Yes after upgrade to node.js 13.9.0 the ui-table example works fine!

All ok for now.

from node-red-ui-nodes.

dceejay avatar dceejay commented on June 1, 2024

(though we don't support node 13... preferring LTS versions.... but hmm - Julian already on 12. (as was I).

from node-red-ui-nodes.

Christian-Me avatar Christian-Me commented on June 1, 2024

Sorry when it comes to linux I feel like a monkey: barely able to type or read understanding nearly nothing. So the only way I do is google, copy, paste, hope ....

I accident grabbed the current version instead of the LTS, ups.

On Windows I`m on 10 and everything works fine (Never change a running system?):

27 Feb 10:08:09 - [info] Node-RED Version: v1.0.2
27 Feb 10:08:09 - [info] Node.js  Version: v10.16.3
27 Feb 10:08:09 - [info] Windows_NT 10.0.18363 x64 LE

But why not updating? on windows 10:
first node.js

27 Feb 10:17:57 - [info] Node-RED Version: v1.0.2
27 Feb 10:17:57 - [info] Node.js  Version: v12.16.1

All fine. Then Upgrading to Node-RED 1.0.3

27 Feb 10:56:43 - [info] Node-RED version: v1.0.3
27 Feb 10:56:43 - [info] Node.js  version: v12.16.1

Everything still works fine and as expected!
image

from node-red-ui-nodes.

TotallyInformation avatar TotallyInformation commented on June 1, 2024

I'm prepared to concede that this is down to the way I install Node-RED. However, that method is perfectly valid and everything else works just fine. All I'm doing is installing NR locally to a folder and running it from there with the userDir folder directly beneath it. So I can't see why the require would fail.

from node-red-ui-nodes.

TotallyInformation avatar TotallyInformation commented on June 1, 2024

On Windows 10 with same configuration:

I get the following warning:

1|Node-RED  | 27 Feb 18:12:35 - [info] Stopped modified nodes
1|Node-RED  | 27 Feb 18:12:35 - [info] Starting modified nodes
1|Node-RED  | 27 Feb 18:12:35 - [warn] [ui_table:5a802dcb.0e64a4] *** Order property not set. Please contact developer. ***
1|Node-RED  | 27 Feb 18:12:35 - [info] Started modified nodes

But everything works as expected.

Actually slight difference on Windows - the version of Node.js installed is v12.14.0, npm is the same though (v6.13.4). Otherwise same versions of the nodes and of Node-RED, same browser. Same installation of Node-RED with the same userDir.

from node-red-ui-nodes.

TotallyInformation avatar TotallyInformation commented on June 1, 2024

Well that stinks. I update node.js to the latest LTS on my W10 device and now I get this:

1|Node-RED  | Welcome to Node-RED
1|Node-RED  | ===================
1|Node-RED  | 27 Feb 19:34:45 - [info] Node-RED version: v1.0.3
1|Node-RED  | 27 Feb 19:34:45 - [info] Node.js  version: v12.16.1
1|Node-RED  | 27 Feb 19:34:45 - [info] Windows_NT 10.0.18363 x64 LE
1|Node-RED  | 27 Feb 19:34:48 - [info] Loading palette nodes
1|Node-RED  | Thu, 27 Feb 2020 19:34:52 GMT node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
1|Node-RED  | In the future, you will have to enable it yourself.
1|Node-RED  | See https://github.com/yagop/node-telegram-bot-api/issues/319. at internal\modules\cjs\loader.js:1158:30
1|Node-RED  | 27 Feb 19:34:53 - [info] +-----------------------------------------------------
1|Node-RED  | 27 Feb 19:34:53 - [info] | uibuilder initialised:
1|Node-RED  | 27 Feb 19:34:53 - [info] |   root folder: C:\src\nr2\data\uibuilder
1|Node-RED  | 27 Feb 19:34:53 - [info] |   version . .: 3.0.0-dev1
1|Node-RED  | 27 Feb 19:34:53 - [info] |   packages . : vue,bootstrap,bootstrap-vue,jquery,moonjs,socket.io
1|Node-RED  | 27 Feb 19:34:53 - [info] +-----------------------------------------------------
1|Node-RED  | [NRTEST:module] RED.settings.contextStorage { default: { module: 'memory' }, file: { module: 'localfilesystem' } }
1|Node-RED  | 27 Feb 19:34:53 - [info] Dashboard version 2.19.3 started at /nr/ui
1|Node-RED  | 27 Feb 19:34:54 - [info] Settings file  : C:\src\nr2\data\settings.js
1|Node-RED  | 27 Feb 19:34:54 - [info] HTTP Static    : C:\src\nr2\public
1|Node-RED  | 27 Feb 19:34:54 - [info] Context store  : 'default' [module=memory]
1|Node-RED  | 27 Feb 19:34:54 - [info] Context store  : 'file' [module=localfilesystem]
1|Node-RED  | 27 Feb 19:34:54 - [info] User directory : C:\src\nr2\data
1|Node-RED  | 27 Feb 19:34:54 - [warn] No active project : using default flows file
1|Node-RED  | 27 Feb 19:34:54 - [info] Flows file     : C:\src\nr2\data\flows_DESKTOP-M1M6R28.json
1|Node-RED  | 27 Feb 19:34:54 - [info] Server now running at http://127.0.0.1:1880/red/
1|Node-RED  | 27 Feb 19:34:54 - [warn] Error loading credentials: SyntaxError: Unexpected token 
                                                                                                 in JSON at position 0
1|Node-RED  | 27 Feb 19:34:54 - [warn] Error loading flows: Error: Failed to decrypt credentials

The credentials file is certainly valid JSON and the timestamp on the file is from December
Urm, that doesn't make any sense since I've installed ui-table and added a flow today! Weird.

Yes, I was right of course - weird. Because I always forget that I have PROJECTS turned on! I only use it for testing uibuilder, not for anything else.


Right, let me apologies up front for what I'm about to say as I know a lot of work has gone into them - it comes from frustration at time wasted.

Sodding projects!

Lord knows why that upgrade killed my Node-RED cred file and equally why NR suddenly decided to ignore my projects setup. But I have moved my project flow/cred file and associated uibuilder folders back to the userDir root folder and everything is working again.

After that, I can say that ui-table is still working on the Windows version of Node.js v12.16.1

from node-red-ui-nodes.

dceejay avatar dceejay commented on June 1, 2024

so ok to close now ?

from node-red-ui-nodes.

TotallyInformation avatar TotallyInformation commented on June 1, 2024

Well only if you don't mind it still not working on Debian Buster. No difference there.

from node-red-ui-nodes.

dceejay avatar dceejay commented on June 1, 2024

It's working fine on Buster here . Ok - so the bit above where you say it's now working is on Windows ? and the projects piece was just a distraction...

from node-red-ui-nodes.

TotallyInformation avatar TotallyInformation commented on June 1, 2024

It always worked on Windows. I just updated Node.js to the same version that I have on Buster just to make sure there is no problem there. There isn't.

The projects part was just me sounding off my frustration since the Node.js installation for some reason hosed my projects. A distraction, sorry.

On my Buster install which uses exactly the same installation format as Windows and indeed as my 2 Pi's and which has been working fine for a couple of years now, ui-table fails as indicated. It does not appear to be able to find the dashboard module for some reason.

from node-red-ui-nodes.

TotallyInformation avatar TotallyInformation commented on June 1, 2024

OK, this is weird. Following on from some further chatter on ui table and context menu in the forum, I decided that I would try this again to see if I could spot the problem.

This time though, everything is working!

So I can no longer do any debugging on this. Sorry. I guess we will have to close this for now until someone else stumbles upon the same set of circumstances?

from node-red-ui-nodes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.