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
-
create babel config like
.babelrcbtw.tsfile is not work I have no idea why -
install some babel dependancies
-
@babel/core
-
@babel/runtime
-
-
remove all code about
next/font
now it’s work on babel now and you will see the tip
