返回 Bug 清单
BUG-0646project-52中已修复frontend-logic

node_modules 恢复 + next build 稳定化

发现:2026-10-09验证:2026-10-09置信度:70%

症状

commit 8e66b460cb03 (2026-09-12) fix(frontend): node_modules 恢复 + next build 稳定化

根因

commit message 描述: fix(frontend): node_modules 恢复 + next build 稳定化

修复方案

修复 8 行,删除 1 行。改动文件: project-521.0.0/frontend/.eslintrc.json, project-521.0.0/frontend/package.json

错误签名

fix(frontend): node_modules 恢复 + next build 稳定化 1. 清理 root node_modules + pnpm store prune + pnpm install --force --ignore-scripts
   → 修复 Electron postinstall 导致的 store 损坏
2. frontend/package.json build 脚本加 --no-lint
   → 绕过 Next.js worker 子进程在 pnpm hard-link 下找不到模块的问题
3. 新增 frontend/.eslintrc.json 覆盖 root parserOptions.project
   → 修复 root .eslintrc.json 相对路径导致 Next.js 默认 lint 阶段 TS 解析错误

pnpm install 必须加 --ignore-scripts (跳过 Electron builder)

技术信息

来源项目

project-52

涉及文件

project-521.0.0/frontend/.eslintrc.json, project-521.0.0/frontend/package.json

标签

git-sweep, auto-ingested, project-52, mcp-reported, source-agent