我正在尝试使用@react 3/drei中的一些组件,这给我带来了大量的导入错误。无论我试图从@react 3/drei中使用什么,我都会得到这些错误。示例:
ERROR in ./node_modules/three-stdlib/loaders/EXRLoader.js 1703:52-62
export 'RGBEFormat' (imported as 'RGBEFormat') was not found in 'three'另一个例子是:
export 'RGBEEncoding' (imported as 'RGBEEncoding') was not found in 'three'这些是项目的依赖关系:
"@react-three/drei": "^8.3.1",
"@react-three/fiber": "^7.0.24",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "5.0.0",
"three": "^0.136.0",
"three-stdlib": "^2.6.2",
"web-vitals": "^2.1.2"我感谢您的帮助和感谢,提前!
发布于 2021-12-25 21:23:14
Three.js迁移指南称"RGBEEncoding和RGBEFormat已被移除“。从136。
尝试使用135代替。
https://stackoverflow.com/questions/70482177
复制相似问题