score:0

try adding <base href="/"> at the top of your index.html file.

score:0

maybe you need to add babel browser script:

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>devflow</title>
    <link rel="stylesheet" href="index.css">
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.min.js"></script>
  </head>
  <body>
    <main id="app"></main>
    <script defer type="text/babel" src="./index.js" data-type="module"></script>
  </body>
</html>

score:0

solved my issue:

the index.js file cannot be read by the browser interpreter because it needs to be compiled into vanilla js.

which i will be attempting to do with webpack


Related Query

More Query from same tag