节点 TS,Google Cloud 运行的构建生成失败,给出错误类型'IsTuple'非通用



我有Node ts项目,它部署在云上运行,但在创建构建时它给出以下错误。

node_modules/@types/prettier/index.d.ts(41,54): error TS2315: Type 'IsTuple' is not generic.
node_modules/@types/prettier/index.d.ts(53,6): error TS2456: Type alias 'IsTuple' circularly references itself.
node_modules/@types/prettier/index.d.ts(53,65): error TS2574: A rest element type must be an array type.
node_modules/@types/prettier/index.d.ts(53,84): error TS2315: Type 'IsTuple' is not generic.
node_modules/@types/prettier/index.d.ts(96,5): error TS2589: Type instantiation is excessively deep and possibly infinite.
node_modules/@types/prettier/index.d.ts(131,5): error TS2589: Type instantiation is excessively deep and possibly infinite.
node_modules/@types/prettier/index.d.ts(165,5): error TS2589: Type instantiation is excessively deep and possibly infinite.
npm ERR! code ELIFECYCLE
npm ERR! errno 2

我也有同样的问题,我只是更新了打字版本。

相关内容

最新更新