-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Closed
Copy link
Labels
Description
Description
The doc says:
import { CameraUtils } from 'three/addons/utils/CameraUtils.js';
However if follow, there will be an error message in the console:
Uncaught SyntaxError: The requested module 'three/addons/utils/CameraUtils.js' does not provide an export named 'CameraUtils'
Actually the code CameraUtils.js exports only the name frameCorners. So the import syntax should be:
import { frameCorners } from 'three/addons/utils/CameraUtils.js';
Reproduction steps
- Following the docs: https://threejs.org/docs/index.html#examples/en/utils/CameraUtils
- import { CameraUtils } from 'three/addons/utils/CameraUtils.js';
Code
import { frameCorners } from 'three/addons/utils/CameraUtils.js';Live example
Screenshots
No response
Version
0.155.0
Device
No response
Browser
No response
OS
No response
Mugen87