Skip to content

Type error in the EcctrlJostick.tsx file #137

@bojuandev

Description

@bojuandev

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} ... />

Image

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

Image

I'm using Next.js version 15.3.2 and the ecctrl library 1.0.92.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions