Проблемы с подключением JS модуля (MIME type error)
Пытался подключить скрипт к странице в котором имортирую библеотеку, но получил следующее:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
Использовал Live Server и OpenServer
Вот импорт и подключение скрипта:
<script src="scripts/script.js" type="module"></script>
--------------------------------------------------------
import math from '/node_modules/mathjs';