📜  nextjs 错误找不到下一个 bable - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:49.742000             🧑  作者: Mango

代码示例1
Create file called .babelrc in your root directory and add this code:

{
  "presets": ["next/babel"],
  "plugins": []
}
And in .eslintrc, replace the existing code with:

{
  "extends": ["next/babel"]
}