// create the PositionalAudio object (passing in the listener)
import * as THREE from 'three';
var sound = new THREE.PositionalAudio( listener );
var helper = new THREE.PositionalAudioHelper(sound);
sound.add( helper );
我收到的webpack错误是:
"export 'PositionalAudioHelper' (imported as 'THREE') was not found in 'three'
我使用yarn
安装了三个,因此它可能未安装包含此提交的最新版本:https://github.com/mrdoob/three.js/pull/15748有关如何执行此操作的任何想法?
PositionalAudioHelper
位于examples
Directoy上,因此必须像这样导入它:import { PositionalAudioHelper } from 'three/examples/jsm/helpers/PositionalAudioHelper.js';
three.js R116