ailed 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. code example
Example: 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
{
}
then...
import config from '../config.js'
does not allow import of existing .json files, but does a job.