VSCode is proposing the line when Iām using Object3D in my script.
by user 334342083445784576
VSCode is proposing the line when Iām using Object3D in my script.
by user 334342083445784576
Theoretically you could also import the full threejs namespace like this import * as THREE from "three"
and access Object3D via THREE.Object3D
but I would be curious what the reason for that error is
sorry, I found the issue. Another script got this in there
import THREE from "three";
I switch it with
import { Vector2 } from "three";
and it worked.
by user 334342083445784576
aaah yeah this import THREE from "three";
should have been import * as THREE from "three"
then
or how you fixed it - which is cleaner