Fetch API cannot load file

Your error explains it all: you can’t load file URLs like that in Chrome.

You probably want to use a webserver. You can deploy a local webserver if you don’t want to test on a live site.