[英]Next.js error - Failed to load SWC binary, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
I am trying to start a next.js project and I keep getting this error: "error - Failed to load SWC binary, see more info here: https://nextjs.org/docs/messages/failed-loading-swc" , when I type "npm run dev".我正在尝试启动 next.js 项目,但我不断收到此错误:“错误 - 无法加载 SWC 二进制文件,请在此处查看更多信息: https://nextjs.org/docs/messages/failed-loading-swc” ,当我输入“npm run dev”。 I have managed to find a workaround by creating a file called.babelrc and adding this code inside:
我设法通过创建一个名为 .babelrc 的文件并在其中添加以下代码来找到解决方法:
{
"presets": ["next/babel"]
}
But this is not a fix, would like to know why I am getting this error and how can avoid it without missing out on the SWC module?但这不是解决方法,想知道为什么我会收到此错误以及如何避免它而不会错过 SWC 模块?
There was an issue with my node, some extra packages of node were not downloaded.我的节点有问题,没有下载一些额外的节点包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.