Next.js: There have some loader for audio support in next.js?

Created on 26 Jun 2019  ·  1Comment  ·  Source: vercel/next.js

Hi, I have an error "failed to compiled" after import audio in next js project.

Below is how i have implemented for that audio.
import correntAnswerAudio from '../../../static/sound/question/correct-answer.mp3';

Then I got error like this.

./static/sound/question/correct-answer.mp3 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)

That why I think maybe have some loader for this kind of audio.
Thanks for help..

>All comments

Please follow the issue template and post your question on https://spectrum.chat/next-js Thanks 🙏

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lixiaoyan picture lixiaoyan  ·  3Comments

renatorib picture renatorib  ·  3Comments

pie6k picture pie6k  ·  3Comments

timneutkens picture timneutkens  ·  3Comments

sospedra picture sospedra  ·  3Comments