TechSpar
TechSpar copied to clipboard
docker部署打包失败
使用docker编排项目启动的时候报错
#24 2.260
#24 2.262 [plugin builtin:vite-reporter]
#24 2.262 (!) Some chunks are larger than 500 kB after minification. Consider:
#24 2.262 - Using dynamic import() to code-split the application
#24 2.262 - Use build.rolldownOptions.output.codeSplitting to improve chunking: https://rolldown.rs/reference/OutputOptions.codeSplitting
#24 2.262 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
#24 2.264 ✗ Build failed in 1.68s
#24 2.267 error during build:
#24 2.267 Build failed with 1 error:
#24 2.267
#24 2.267 Error: [vite]: Rolldown failed to resolve import "@tiptap/core" from "/app/frontend/src/resume/shared/rich-editor/BetterSpace.ts".
#24 2.267 This is most likely unintended because it can break your application at runtime.
#24 2.267 If you do want to externalize this module explicitly add it to
#24 2.267 `build.rolldownOptions.external`
#24 2.267 at viteLog (/app/node_modules/.bun/[email protected]+0a8d80db9765b8c4/node_modules/vite/dist/node/chunks/node.js:33823:61)
#24 2.267 at onwarn (/app/node_modules/.bun/@[email protected]+5bf5eb0228d00367/node_modules/@vitejs/plugin-react/dist/index.js:40:7)
#24 2.267 at <anonymous> (/app/node_modules/.bun/[email protected]+0a8d80db9765b8c4/node_modules/vite/dist/node/chunks/node.js:33859:28)
#24 2.267 at onRollupLog (/app/node_modules/.bun/[email protected]+0a8d80db9765b8c4/node_modules/vite/dist/node/chunks/node.js:33854:62)
#24 2.267 at onLog (/app/node_modules/.bun/[email protected]+0a8d80db9765b8c4/node_modules/vite/dist/node/chunks/node.js:33619:4)
#24 2.267 at logger (/app/node_modules/.bun/[email protected]/node_modules/rolldown/dist/shared/create-bundler-option-wRiQzEJ3.mjs:39:3)
#24 2.267 at aggregateBindingErrorsIntoJsError (/app/node_modules/.bun/[email protected]/node_modules/rolldown/dist/shared/error-CVc7IgvG.mjs:48:22)
#24 2.267 at unwrapBindingResult (/app/node_modules/.bun/[email protected]/node_modules/rolldown/dist/shared/error-CVc7IgvG.mjs:18:128)
#24 2.267 at #build (/app/node_modules/.bun/[email protected]/node_modules/rolldown/dist/shared/rolldown-DiYVDns9.mjs:132:34)
#24 2.267 at processTicksAndRejections (native:7:39) {
#24 2.267 errors: [Getter/Setter]
#24 2.267 }
#24 2.316 error: script "build" exited with code 1
#24 ERROR: process "/bin/sh -c bun run --cwd frontend build" did not complete successfully: exit code: 1
------
> [build 14/14] RUN bun run --cwd frontend build:
2.267 at onRollupLog (/app/node_modules/.bun/[email protected]+0a8d80db9765b8c4/node_modules/vite/dist/node/chunks/node.js:33854:62)
2.267 at onLog (/app/node_modules/.bun/[email protected]+0a8d80db9765b8c4/node_modules/vite/dist/node/chunks/node.js:33619:4)
2.267 at logger (/app/node_modules/.bun/[email protected]/node_modules/rolldown/dist/shared/create-bundler-option-wRiQzEJ3.mjs:39:3)
2.267 at aggregateBindingErrorsIntoJsError (/app/node_modules/.bun/[email protected]/node_modules/rolldown/dist/shared/error-CVc7IgvG.mjs:48:22)
2.267 at unwrapBindingResult (/app/node_modules/.bun/[email protected]/node_modules/rolldown/dist/shared/error-CVc7IgvG.mjs:18:128)
2.267 at #build (/app/node_modules/.bun/[email protected]/node_modules/rolldown/dist/shared/rolldown-DiYVDns9.mjs:132:34)
2.267 at processTicksAndRejections (native:7:39) {
2.267 errors: [Getter/Setter]
2.267 }
2.316 error: script "build" exited with code 1
------
; stderr: Dockerfile:14
--------------------
12 | RUN bun install --frozen-lockfile --filter frontend
13 | COPY frontend frontend
14 | >>> RUN bun run --cwd frontend build
15 |
16 | FROM nginx:alpine
--------------------
failed to solve: process "/bin/sh -c bun run --cwd frontend build" did not complete successfully: exit code: 1
, err: exit status 1
2026/08/19 23:36:07 [TASK-END]
你好,这个报错来自 v0.3.0 正式发布前的迁移中间态,不是当前正式版本;其中前端依赖尚未完整收口,所以构建时无法解析 @tiptap/core。
目前 TechSpar v0.3.0 已正式发布,后端已迁移为 TypeScript + Bun + Hono,并提供 Electron 桌面客户端:
- Release:https://github.com/AnnaSuSu/TechSpar/releases/tag/v0.3.0
- macOS Apple Silicon:下载
TechSpar-0.3.0-mac-arm64.dmg - Windows x64:下载
TechSpar-0.3.0-win-x64.exe
桌面安装包已经包含运行环境,不需要另外安装 Bun、Node.js 或 Python。
如果仍希望使用 Docker 部署,请先切换并更新到最新 main,再重新构建:
git switch main
git pull
docker compose up --build
迁移前的 Python 版本已归档在 legacy/python-backend,不再接收新功能和修复。