next-compile
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCheck Next.js compilation errors
检查Next.js编译错误
MANDATORY: after any /, run step 2 before telling the user the change is done. Never run . Turbopack only — the script bails on webpack.
EditWritenext build-
Find the port of a running— check listening processes. If you can't find it, ask the user.
next dev -
Run:bash
node ./scripts/check.mjs <port> -
Fix actionable errors. Ignore noise or pre-existing unrelated failures.
-
Only report the edit complete once step 2 returns clean (or only pre-existing failures).
必须执行:在任何/操作后,告知用户修改完成前请先执行步骤2。切勿运行。仅支持Turbopack——若使用webpack,脚本会终止运行。
EditWritenext build-
找到运行中的端口——查看监听进程。如果无法找到,请询问用户。
next dev -
运行以下命令:bash
node ./scripts/check.mjs <port> -
修复可处理的错误。忽略无关的干扰信息或预先存在的无关失败。
-
仅当步骤2返回无错误(或仅存在预先存在的失败)时,才可报告编辑完成。