Answer the question
In order to leave comments, you need to log in
How to fix browser MIME error for import jpg in js?
error with MIME types
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "image/jpeg". Strict MIME type checking is enforced for module scripts per HTML spec.
due to import GrassTexture from '../../static/textures/grass_background.jpg';
webpack creates the build as I need and seems to work well)
devServer: {
publicPath: '/public/',
compress: true,
port: 9000,
hot: true,
open: true,
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question