npatel023/ExpressMySQL

here i am getting a error that document is not defined

Opened this issue · 2 comments

document.addEventListener('DOMContentLoaded', function () {
fetch('http://localhost:5000/getAll')
.then(response => response.json())
.then(data => loadHTMLTable(data['data']));

I have a same issue... did you manage to resolve this error ?

yes check your folder structure once