I found typing issues in the EcctrlJostick.tsx file. Buttons of type THREE.CylinderGeometry are not compatible with the geometry parameter of the mesh component; geometry is of type BufferGeometry | Readonly<BufferGeometry. The same thing happens with the material property.
Example:
<mesh geometry={buttonLargeBaseGeo} material={buttonBaseMaterial} ... />

Similarly, when searching for elements in the DOM, they may be null.
Example:
const buttonDiv: HTMLDivElement = document.querySelector("#ecctrl-button")

I'm using Next.js version 15.3.2 and the ecctrl library 1.0.92.
I found typing issues in the EcctrlJostick.tsx file. Buttons of type THREE.CylinderGeometry are not compatible with the geometry parameter of the mesh component; geometry is of type BufferGeometry | Readonly<BufferGeometry. The same thing happens with the material property.
Example:
<mesh geometry={buttonLargeBaseGeo} material={buttonBaseMaterial} ... />Similarly, when searching for elements in the DOM, they may be null.
Example:
const buttonDiv: HTMLDivElement = document.querySelector("#ecctrl-button")I'm using Next.js version 15.3.2 and the ecctrl library 1.0.92.