You will want to use a simple http server to view the example to avoid path issues.
Note: you will need to host the server in the root directory so the dist folder can be accessed.
dist
For example: python3 -m http.server
python3 -m http.server