@jgreen721
Posted
My guess is you worked on this thru files (IE, copied path into the browser) which will hit a CORS error since it requires http(s). So, as is now on github or (for development, live-server VS-code extension is pretty popular), fetch("filepath/to/yourdata.json") should work. Since data.json is on same level then fetch("data.json") should be good to go. But ya, my guess was it was a File/Http issue. And if not, well, then I dunno! lol. Good job on everything else!
Marked as helpful