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.
A simple workaround:
config.js
export default
{
// my json here...
}
then...
import config from '../config.js'
does not allow import of existing .json files, but does a job.
Also in HTML:
- html placeholder multiple lines
- input types html
- what is a div element in html
- execute js from image
- two buttons on html page flask
- how to disable zoom in html page on different screen resolutions
- html table span 2 rows
- html onclick stop propagation
- how to put images in html
- how to add multiple videos in html5 with javascript
- html button with link
- aside html
- how to change font in html
- jquery implement in html
- download button html
- change html title
- djnago
- number input html
- html create a header
- print page html
- traductor
- is it illegal to quote other movies in your own
- let's encrypt ssl not working
- how to add a rollover image in html