Your rootDir is currently set to "./". Please change your rootDir to "./src".

Your rootDir is currently set to "./". Please change your rootDir to "./src".
TSDX has deprecated setting tsconfig.compilerOptions.rootDir to "./" as it caused buggy output for declarationMaps and more.
You may also need to change your include to remove "test", which also caused

 

解释:

TSDX已经将tsconfig.compilerOptions.rootDir to './'弃用了,需要把tsconfig.json里的rootDir由'./'改为'./src',或者把test文件夹删了。

但无论是tsconfig.json还是test文件夹(单测)都是npx tsdx create xxx自动生成的。。。

posted @ 2021-08-19 11:47  Redchar  阅读(95)  评论(0编辑  收藏  举报