Hot to using Babel In NextJS

Start from NextJS 13 which mean the next js start support APP route, In NextJS default using SWC, so if you want to using babel for app route, there are few steps for that

  1. create babel config like .babelrc btw .ts file is not work I have no idea why

  2. install some babel dependancies

    1. @babel/core

    2. @babel/runtime

  3. remove all code about next/font

now it’s work on babel now and you will see the tip

image 31.png