Supergiovane / node-red-contrib-hikvision-ultimate

A native set of node for Hikvision Cameras, Doorbells, Alarms, Radars etc.
https://www.facebook.com/supergiovaneDev
MIT License
51 stars 11 forks source link

node-red-contrib-hikvision-ultimate (Flows stopped due to missing node types. Hikvision-config) #37

Closed Cikis1 closed 2 years ago

Cikis1 commented 2 years ago

Hello Supergiovane,

I apologize to put issue here but I cannot find the issue option for "node-red-contrib-hikvision-ultimate".

Describe the bug Flows stopped due to missing node types. Hikvision-config

node-red-contrib-hikvision-ultimate 1.0.61 installed via menu Manage pallete in Node-red is showing the following error:

"Error [ERR_REQUIRE_ESM]: require() of ES Module /home/pi/.node-red/node_modules/node-fetch/src/index.js from /home/pi/.node-red/node_modules/digest-fetch/digest-fetch-src.js not supported. Instead change the require of index.js in /home/pi/.node-red/node_modules/digest-fetch/digest-fetch-src.js to a dynamic import() which is available in all CommonJS modules. (line:4)"

Hardware and Software used Raspberry Pi 3B+ Raspberry Pi OS, Buster Node-red version 2.2.2 - this is the only software running on Raspberry Pi 3B+ Node.js version 12.22.12 (but I tried also version 14 and version 16 installation) Linux 5.10.103-v7+ arm LE node-red-contrib-hikvision-ultimate 1.0.61

I tried clean installation several times: Raspberry Pi OS, Buster + Node-red with different versions of Node.js (12, 14, 16). I am getting the same error.

I was not able to install older versions of node-red and older version of node-red-contrib-hikvision-ultimate

Thank you very much for your suggestion how to fix the issue.

Kind regards, Milos

Supergiovane commented 2 years ago

Hi Milos It seems to be an issue somewhere in a fetch module, due to some odd incompatibility. Tomorrow i’ll take a look!

Supergiovane commented 2 years ago

Hi again please upgrate hikvision ultimate to the latest 1.0.62 and try again

Supergiovane commented 2 years ago

Hi, i've moved the issue to the hikvision-ultimate page.

Cikis1 commented 2 years ago

Hello Supergiovane,

It works very well now. Thank you for ultrafast reaction!

Kind regards, Milos