When working with Threebox and Mapbox, my code includes defining threebox in the following way:
(window as any).tb = new Threebox(this, gl, { defaultLights: true });
However, I also import THREE like this:
import * as THREE from 'three';
This allows me to utilize features such as raycasting.
One issue I am encountering is a warning message in my application:
"WARNING: Multiple instances of Three.js being imported."
I am curious if there is a method to make threebox use the existing instance of THREE or somehow integrate the threebox instance of THREE without requiring a separate import.