admin管理员组文章数量:1313156
I’m trying to create a timer in THREE.js. All the libraries are installed through NPM and the seem to be correctly installed, I’ve created a scene and loaded an object with a GLTFLoader. Orbit controls also all seem to be working correctly. Other modules are importing correctly eg:
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
But when I enter:
import { Timer } from 'three/addons/misc/Timer.js';
I get the error `Unable to resolve the path to module 'three/addons/misc/Timer.js'. I’ve tried looking in the node_moduls folder, in the three folder. But I can’t even find the addons folder. So I’m a bit confused. Can anyone tell me what I’m doing wrong?
本文标签: javascriptUnable to resolve path to module 39threeaddonsmiscTimerjs39Stack Overflow
版权声明:本文标题:javascript - Unable to resolve path to module 'threeaddonsmiscTimer.js' - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741936521a2405888.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论