KALO ADA YG NEMU ERROR KAYAK GINI (ADA TULISAN SWCNYA), FIX DENGAN CARA INI:
BUKA VSCODE LALU:
Step 1. add this line or edit next.CONFIG.js
{
swcMinify: false // it should be false by default
}
Step 2. add a ".babelrc" file to project root dir
klik dulu pastiin ada box biru biar kita di root project
Step 3. add this snippet to the new file ".babelrc"
{
"presets": ["next/babel"]
}
simpan, kalo udah tinggal yarn dev spti biasa
atau npm run dev juga bisa