Skip to content

Package is incompatible with "moduleResolution": "nodenext"/"node16" #611

@helgee

Description

@helgee

Describe the bug

In Typescript projects that set "moduleResolution": "nodenext" or "moduleResolution:":"node16" in their tsconfig.json` this package cannot be imported.
Typescript reports the following error:

Property 'install' does not exist on type 'typeof import("[...]/node_modules/camera-controls/dist/index")'.ts(2339)

To Reproduce

Steps to reproduce the behavior:

  1. Set "moduleResolution": "nodenext" in tsconfig.json
  2. import CameraControls from 'camera-controls'
  3. Try to call CameraControls.install(...)
  4. See error

Code

Live example

No response

Expected behavior

Importing should work :-)

Screenshots or Video

No response

Device

No response

OS

No response

Browser

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions