Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.

Published 
DevOps

Don't know what's causing this issue, but i've found it recently in a fresh chrome version.

Here's how to fix it:

sudo vi /etc/nginx/mime.types

find this line:

application/javascript js

add at then end of it, right after js:

application/javascript js mjs

reload nginx:

sudo nginx -s reload