1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

OrbitControls of THREE.js displaying error

Discussão em 'Angular' iniciado por Jeet, Setembro 11, 2024.

  1. Jeet

    Jeet Guest

    I have already installed THREE.js in my angular project.I am trying to use OrbitControls in the below fashion but it is giving an error:-

    var controls = new THREE.OrbitControls(this.camera,this.renderer.domElement);


    The error is :

    Property 'OrbitControls' does not exist on type 'typeof import.


    Can anybody suggest how to use OrbitControl in angular project?

    I tried to install the below npm libraries but without luck :-

    npm i @types/three --save-dev
    npm i --save three-orbit-controls

    Continue reading...

Compartilhe esta Página