When importing the three js and draco modules as shown below:
import * as THREE from 'https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e7938f958282a7d7c9d6d5d6c9d6">[email protected]</a>/build/three.module.js';
import { DRACOLoader } from 'https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bcc8d4ced9d9fc8c928d8e8d928d">[email protected]</a>/examples/jsm/loaders/DRACOLoader.js';
import { OrbitControls } from 'https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd89958f9898bdcdd3cccfccd3cc">[email protected]</a>/examples/jsm/controls/OrbitControls.js';
and attempting to create a DracoLoader instance like so:
var dracoLoader = new THREE.DRACOLoader();
An error is encountered:
> THREE.DRACOLoader is not a constructor
Could there be an issue with the import or another factor causing this problem?