首页 > 解决方案 > tsc:1:达到最大嵌套函数级别;增加 FUNCNEST?

问题描述

我正在尝试编译一个打字稿文件,但遇到了这个错误:

work/gigMax [typescriptMigration●] » tsc src/mutate.ts
tsc:1: maximum nested function level reached; increase FUNCNEST?
work/gigMax [typescriptMigration●] » which tsc
tsc () {
    tsc --target ESNEXT $1
}

问题:

标签: typescriptzsh

解决方案


我通过注释掉 .zshrc 中的 tsc 函数重载来回答最后一个问题:

work/gigMax [typescriptMigration] » tsc src/mutate.ts 
work/gigMax [typescriptMigration●] » which tsc
/home/geoff/.nvm/versions/node/v12.12.0/bin/tsc

仍然对其他两个问题感到好奇。


推荐阅读