Man, I struggled with this too! fetch() won't cut it for local files.
Quick workaround: Use `require()` if you're in a Node environment:
```js
const data = require('./file.json');
```
For browsers, you *have* to use FileReader or a server. Mozilla’s docs have a great guide on the File API—check it out!
Quick workaround: Use `require()` if you're in a Node environment:
```js
const data = require('./file.json');
```
For browsers, you *have* to use FileReader or a server. Mozilla’s docs have a great guide on the File API—check it out!
