#Installing ThreeJS *without* CDN or NPM? I want to use Django.

3 messages · Page 1 of 1 (latest)

wanton rune
#

I did the following:

//Todo, replace skypack with local.
import {
BoxBufferGeometry,
Color,
Mesh,
MeshBasicMaterial,
PerspectiveCamera,
Scene,
WebGLRenderer,
} from "./three.js-dev/build/three.module.js";

But I get the error:

Uncaught SyntaxError: The requested module 'http://127.0.0.1:8000/static/canvas_1/three.js-dev/build/three.module.js' doesn't provide an export named: 'BoxBufferGeometry'

#

Oh is it just BoxGeometry now?

#

Ok seems to be so, great.

I'll leave this open fo ra little longer to see if someone has advice on how to organize this other than to just have the whole repo around.