Can't add node on a node-red fresh install
Closed this issue · 4 comments
chnateag commented
Hi,
when i try to add the node i get this message in the node-red palette :
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/node_modules/node-fetch/src/index.js from /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js not supported. Instead change the require of index.js in /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js to a dynamic import() which is available in all CommonJS modules. (line:4)
ERR_REQUIRE_ESM
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/node_modules/node-fetch/src/index.js from /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js not supported. Instead change the require of index.js in /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js to a dynamic import() which is available in all CommonJS modules. (line:4)
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/node_modules/node-fetch/src/index.js from /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js not supported. Instead change the require of index.js in /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js to a dynamic import() which is available in all CommonJS modules. (line:2)
ERR_REQUIRE_ESM
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/node_modules/node-fetch/src/index.js from /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js not supported. Instead change the require of index.js in /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js to a dynamic import() which is available in all CommonJS modules. (line:4)
ERR_REQUIRE_ESM
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/node_modules/node-fetch/src/index.js from /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js not supported. Instead change the require of index.js in /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js to a dynamic import() which is available in all CommonJS modules. (line:4)
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/node_modules/node-fetch/src/index.js from /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js not supported. Instead change the require of index.js in /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js to a dynamic import() which is available in all CommonJS modules. (line:4)
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/node_modules/node-fetch/src/index.js from /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js not supported. Instead change the require of index.js in /data/node_modules/node-red-contrib-wazo-platform/nodes/lib/internal_api.js to a dynamic import() which is available in all CommonJS modules. (line:4)
node-red v3.0.2
thank you
sboily commented
Hello, what is your nodejs version? This is probably the issue. I'm running with the latest version without issue. Have you tested with the docker version?
chnateag commented
Hi, i'm using the docker version too :
3 May 07:19:01 - [info] Node-RED version: v3.0.2
3 May 07:19:01 - [info] Node.js version: v16.16.0
3 May 07:19:01 - [info] Linux 5.10.0-18-amd64 x64 LE
I think it's the good image : nodered/node-red
I made a pull this morning to be sure i'm up to date, i was already : /
sboily commented
Hello, is it still the same issue with the latest version?
chnateag commented
Hi, no it's all okay, thank you !