Подключение скрипта в index.html react
Как подключить скрипт написанный мною к index.html в react. Подключаю как обычно:
<script type="module" src="index.js"></script>
выпадают ошибки, типа
Expected a JavaScript module script but the server responded with a MIME type of "text/html.
Или это как-то по-другому делать надо?