Following the installation guide on https://threejs.org/docs/#manual/en/introduction/Installation, I installed three via npm and wrote import * as THREE from ‘three’. But it didn’t work, the browser console gave an error message: “Failed to load module script: The server responded with a non-JavaScript MIME type of “text/html”. Strict MIME type checking is enforced for module scripts per HTML spec.”
How to import three properly?