type=“module” и файл проверить
Если подсоединить скрипт с помощью <script defer type="module" src="./build/bundle.js"></script> у меня почему то на сайте с включенным SSL (со стандартным сертификатом Cloudflare) браузер ругается Mixed Content: The page at 'https://.../' was loaded over HTTPS, but requested an insecure script 'http://.../'. This request has been blocked; the content must be served over HTTPS.