const [soundFile, setSoundFile] = useState(null);
useEffect(() => {
async function importFile() {
const file = await import(
`../../assets/media/${teamimType}/humash/${teamimType}-parasha.wav`
);
setSoundFile(file);
}
importFile();
}, []);
the import is working without errors, but when i use it in the sound component -
<AudioPlayer
className="audio-player"
style={{ direction: 'ltr' }}
showJumpControls={false}
autoPlay
src={soundFile} // <=====
/>
i get the following error: Uncaught (in promise) TypeError: Cannot convert object to primitive value...
after the import, if i log the file i get 
probably the import method is wrong but i dont know what to do.. thanks!