fantasticit / think

云策文档是一款开源知识管理工具。通过独立的知识库空间,结构化地组织在线协作文档,实现知识的积累与沉淀,促进知识的复用与流通。
https://think.codingit.cn
MIT License
2.01k stars 392 forks source link

[BUG]下载@types/cron之后编译报错Cannot find type definition file for 'cron'. #272

Closed coding-nothing closed 3 months ago

coding-nothing commented 4 months ago

1. 问题的表现是怎样的?

下载@types/cron之后编译报错Cannot find type definition file for 'cron'.

2. 问题的复现路径

执行pnpm run dev

3. 预期是什么?

成功运行

fantasticit commented 3 months ago
  1. 删除 server 依赖 @types/cron
  2. 升级 server typescript 到 4.8.4 以上
  3. 修改 server tsconfig.json compileOptions skipLibCheck