You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Digital Ocean应用构建异常:已配置TypeScript依赖却提示未安装

Digital Ocean应用平台构建TypeScript依赖报错问题

近两天在Digital Ocean(DO)应用平台构建项目,代码未做任何改动,仅执行强制重新部署构建操作后,突然出现如下报错:

[2023-04-06 09:03:02] │ It looks like you're trying to use TypeScript but do not have the required package(s) installed.
[2023-04-06 09:03:02] │ 
[2023-04-06 09:03:02] │ Please install typescript by running:
[2023-04-06 09:03:02] │ 
[2023-04-06 09:03:02] │         yarn add --dev typescript
[2023-04-06 09:03:02] │ 
[2023-04-06 09:03:02] │ If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages directory).
[2023-04-06 09:03:02] │ 

同时,staging分支构建完全正常,两个分支的依赖版本完全一致:

"dependencies": { 
    "next": "^12.0.7", 
    "react": "17.0.2", 
    "react-dom": "17.0.2", 
  },
  "devDependencies": { 
    "@types/node": "^18.11.9",
    "@types/react": "^18.0.33", 
    "ts-node": "^10.9.1",
    "typescript": "^5.0.3", 
  }

补充说明:尝试回滚到之前已成功部署的旧提交,构建仍失败。

内容的提问来源于stack exchange,提问作者Darkbound

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 12:55:19