Skip to content

Frontend build dependencies#37

Draft
topfunplusnew wants to merge 1 commit intofront-devfrom
cursor/frontend-build-dependencies-2f5c
Draft

Frontend build dependencies#37
topfunplusnew wants to merge 1 commit intofront-devfrom
cursor/frontend-build-dependencies-2f5c

Conversation

@topfunplusnew
Copy link
Owner

Fix Docker build failures by including a missing local package's package.json and switching to a more stable npm/yarn registry.

The build was failing due to two main issues:

  1. The local workspace package @code-less/platform was not recognized during yarn install in the Docker build, as its package.json was not copied into the container.
  2. The configured Tencent npm mirror (https://mirrors.tencent.com/npm/) was returning a "Request failed 567 undefined" error, indicating instability.

This PR addresses these by:

  • Adding COPY packages/code-less/package.json to the Dockerfile.
  • Changing both npm and yarn's registry to https://registry.npmmirror.com (Aliyun mirror) for improved reliability.

Open in Cursor Open in Web

1. 添加 code-less 包的 package.json 到构建环境
   - order-system 依赖 @code-less/platform 本地包
   - 需要在 yarn install 前复制此包的 package.json

2. 切换 npm/yarn 镜像源为阿里云
   - 腾讯云镜像源不稳定,返回 567 错误
   - 同时为 npm 和 yarn 设置 registry
@cursor
Copy link

cursor bot commented Jan 12, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants