Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/json". Strict MIME type checking is enforced for module scripts per HTML spec.
const response = await fetch('data.json');
const data = await response.json();
console.log(data);
npx
, например: npx serve
.