Hi,
import { ColladaLoader } from “https://cdn.jsdelivr.net/npm/three@0.119/examples/jsm/loaders/ColladaLoader.js”;
var loader = new THREE.ColladaLoader();
THREE.ColladaLoader is not a constructor
can anybody help me ?
thanks
Hi,
import { ColladaLoader } from “https://cdn.jsdelivr.net/npm/three@0.119/examples/jsm/loaders/ColladaLoader.js”;
var loader = new THREE.ColladaLoader();
THREE.ColladaLoader is not a constructor
can anybody help me ?
thanks
If you import code from the jsm
directory, the THREE
namespace is not necessary. So please create the loader just like that:
var loader = new ColladaLoader();
thanks -
due to your help i had my first nice three.js page within 2 days