Neel icon indicating copy to clipboard operation
Neel copied to clipboard

MIME type

Open levshx opened this issue 3 years ago • 0 comments

INFO Jester is making jokes at http://127.0.0.1:5000 (all interfaces)
DEBUG GET /
DEBUG   200 OK {"cache-control": @["no-store"]}
DEBUG GET /main.css
DEBUG   200 OK {"cache-control": @["no-store"]}
DEBUG GET /three.module.js
DEBUG   200 OK {"cache-control": @["no-store"]}
DEBUG GET /GLTFLoader.js
DEBUG   200 OK {"cache-control": @["no-store"]}
DEBUG GET /RoomEnvironment.js
DEBUG   200 OK {"cache-control": @["no-store"]}
DEBUG GET /lil-gui.module.min.js
DEBUG   200 OK {"cache-control": @["no-store"]}

JS:

		import * as THREE from './three.module.js';
		import { GLTFLoader } from './GLTFLoader.js';
		import { RoomEnvironment } from './RoomEnvironment.js';
		import { GUI } from './lil-gui.module.min';

Chrome:



GLTFLoader.js:1
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
RoomEnvironment.js:1
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
lil-gui.module.min.js:1
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
three.module.js:1
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.

As far as I understand, I need to set the MIME type on the server, how can I do this? I use three.js .

levshx avatar Dec 15 '21 13:12 levshx