Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
Tiene problemas con la importación de archivos, al intentar construir un módulo 3d en la web con three.js

 import * as THREE from 'three.js' import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js' const renderer = new THREE.WebGLRenderer(); renderer.setSize(window.innerWidth,window.innerHeight); document.body.appendChild(renderer.domElement); const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeight, 0.1, 1000 ); const orbit = new OrbitControls(camera,renderer,domElement); const axesHelper = new THREE.AxesHelper(5); scene.add(axesHelper); camera.position.set(0,2,7.5); orbit.update(); const boxGeometry = new THREE.BoxGeometry(); const boxMaterial = new THREE.MeshBasicMaterial({color:0x00ff00}); const box = new THREE.Mesh(boxGeometry,boxMaterial); scene.add(box); box.rotation.x = 5; box.rotation.y = 5; function animate(){ box.rotation.x += 0.01; box.rotation.y += 0.01; renderer.render(scene,camera); } renderer.setAnimationLoop(animate);

ingrese la descripción de la imagen aquí Sigo recibiendo un error cuando quiero importar tres y orbitcontrols.js, pero ya los instalé npm y están dentro del archivo node_modules, ¿qué debo hacer para que funcione?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!