import { Html } from '@react-three/drei';
./node_modules/three-stdlib/lights/RectAreaLightUniformsLib.js
Attempted import error: 'DataUtils' is not exported from 'three'.
我尝试查看了关于 drei 在 HTML 上的文档,但得到的结果仍然无法正常工作。
The native route of the library does not export Html or Loader. The default export of the library is web which does export Html and Loader.
import { Icosahedron, Html, OrthographicCamera } from '../../src'
import { HtmlProps, CalculatePosition } from 'web/Html'
我使用
import { Html, useProgress, useGLTFLoader } from "drei";
它有效。
但当我使用时
import { Html } from '@react-three/drei';
它破裂了