.mjs is used for JavaScript module file. It suppose to be in application/javascript same as .js file.
Spark didn't support it yet and results in below error in the browser. As you can see below pic. that module.mjs was blocked by Chrome as Content-Type is application/octet-stream in the response header.
.mjs
is used for JavaScript module file. It suppose to be inapplication/javascript
same as.js
file. Spark didn't support it yet and results in below error in the browser. As you can see below pic. thatmodule.mjs
was blocked by Chrome asContent-Type
isapplication/octet-stream
in the response header.