你能讓我們看看你的錯誤嗎?它說了什麼?此外,在您貼上的程式碼的第四行中,您忘記了'./'。請使用它來代替
import DavidDaDon from 'DavidDaDon.png';
應該要這樣
import DavidDaDon from './DavidDaDon.png';