hi there, i am trying to load a simple client.js file from my html file and inside the client js contains something like this
$(function() {
const jsonfile = require(“jsonfile”);
const file = “./data/json/fund_tracking.json”;console.log(“test”);
var jsonObj = jsonfile.readFile(file, function(err, obj) {
if (err) console.error(err);
console.dir(obj);
});console.log(JSON.stringify(jsonObj));
});
just a simple on site load, put my data from json to obj and wanna load it to html. But with the console.log(“test”), i am not seeing that being print in the console which is i think is not loading in.
here is my url