import {options } from "../data/options.js";
import { view} from "../data/view.js";
The site builds correctly, and works with other servers (tested with sharepoint and vscode Live Server (ritwickdey.liveserver)
For some reason, when hugo server is serving the site I get the following error in the browser:
Failed to load module script: The server responded with a non-JavaScript MIME type of "application/json". Strict MIME type checking is enforced for module scripts per HTML spec.
They are under static folder. I don’t think that’s the issue, as the js file is loading fine, what is failing is the “import” statement inside that js. and its only failing with hugo server (as much as I could test with other servers works ok)