Read the statement by Michael Teeuw here.
MMM-FroniusSolar family modules
-
@alfi153 @chrisfr1976 the current versions of nodejs since 18 have fetch built in. if the module does
const fetch = require(‘node-fetch’)
you can comment out that line and the fetch syntax is the same
-
@chrisfr1976 everyone with reputation below 2 has every post reviewed (by me) before going live. sometimes i sleep! or do other things. lol
-
Hello Chris
FYI.
They remove node fetch from the magic mirror package on the last release as we drop back to the integrated fetch that’s provided in node and in the electron browser unfortunately that breaks a bunch of modules.Just remove the the line const fetch = require(“fetch”); in the file node-helper.js in the module’s directory.
I Have removed the line, and now it works
-
Tried to install 2 and 3 on an RPI 3B+ running 64
bookworm - will not even load and throws a .js error - IP address configured and did copy and paste for the config.js - mm just stalls -
@sdetweil
Hi,I’ve updated the node _helper.js.
//const fetch = require("node-fetch");
If some has trouble it can be reactivated. Maybe I hab installed node_helper in the past manually. I don’t remember. Until now I had no errors from that. But yes, it woks well without this line.
-
@waynerob11
Please send the error massage that you receive. I want to help you!