The first line in a Node red Function Node is
var moment = require('moment-timezone');
I am trying to establish a timezone correct date/time stamp for sensor data. I get the following error when this node runs;
ReferenceError: require is not defined (line 1, col 14)
This function, by the way, has other JavaScript which always runs perfectly.
My Package.json has no errors and I have the, "moment-timezone":"0.5.3" added.
I understand from a bit or research that I need to add something to the settings.js file, however, I need some guidance on what to add so that require
is recognized.