Hello,
my question is how can I access a file from Hard disk? Unfortunately, I can’t just copy the file to the project folder. I need the file for example from C:\path\to\file. I tried using fetch, but it only works IF my JSON file is in the same folder as the project itself e.g.
fetch("./file.json")
.then((response) => response.json())
.then((data) => console.log(data))
.catch((e) => console.log(e));
I also tried using required with node. But when I use required, it becomes a nodejs environment and I don’t have access to the HTML which I need. Do you guys have an idea or tips to the situation? Thanks.