# how to load mp3 sound in phaser3?

**URL:** <https://phaser.discourse.group/t/how-to-load-mp3-sound-in-phaser3/10074>\
**Category:** Phaser 3\
**Created:** [August 6, 2021, 2:04pm UTC](https://phaser.discourse.group/t/how-to-load-mp3-sound-in-phaser3/10074 "2021-08-06T14:04:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajju](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@ajju](https://phaser.discourse.group/u/ajju)\
**Post date:** [August 6, 2021, 2:04pm UTC](https://phaser.discourse.group/t/how-to-load-mp3-sound-in-phaser3/10074/1 "2021-08-06T14:04:38Z")

</div>

I got following error in visual code when compile.  
ERROR in ./src/assets/switchSound.mp3 1:3  
Module parse failed: Unexpected character ‘♦’ (1:3)  
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See [Concepts | webpack](https://webpack.js.org/concepts#loaders)  
(Source code omitted for this binary file)

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [August 6, 2021, 2:22pm UTC](https://phaser.discourse.group/t/how-to-load-mp3-sound-in-phaser3/10074/2 "2021-08-06T14:22:55Z")

</div>

👋

You need to use [file-loader](https://v4.webpack.js.org/loaders/file-loader/) (webpack 4) or [asset modules](https://webpack.js.org/guides/asset-modules/) (webpack 5).

---

<div class="post-metadata">

**Author:** ![ajju](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@ajju](https://phaser.discourse.group/u/ajju)\
**Post date:** [August 16, 2021, 7:30am UTC](https://phaser.discourse.group/t/how-to-load-mp3-sound-in-phaser3/10074/3 "2021-08-16T07:30:39Z")

</div>

Thanq I solved…
