module.exports = {
LogValue1: function (data)
{
return somevalue;
},
};
var fetch = require('./static/fetchData');
fetch.LogValue1(data);
Asked
Active
Viewed 1,970 times
1

Jaap
- 81,064
- 34
- 182
- 193

Jyoti Raj Sharma
- 91
- 1
- 3
- 10
1 Answers
1
If the problem is the require part, you need to you requireJs for that.
Just add to your page.

GarbageCollector
- 124
- 1
- 6
-
Old answer with no upvotes, but it solved my problem after half an hour of googling and trying other things. Thank you for posting. – RedDragonWebDesign Jun 25 '20 at 16:51