typescript - 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
}
问题:
- 什么是最大嵌套函数级别?
- 什么是最有趣的?
- 我该如何解决这个问题并从 typescript 编译到 javascript?
解决方案
我通过注释掉 .zshrc 中的 tsc 函数重载来回答最后一个问题:
work/gigMax [typescriptMigration] » tsc src/mutate.ts
work/gigMax [typescriptMigration●] » which tsc
/home/geoff/.nvm/versions/node/v12.12.0/bin/tsc
仍然对其他两个问题感到好奇。
推荐阅读
- mysql - 如何在 SQL 脚本中声明变量?
- android - Kotlin android 从广播接收器中检索应用程序
- postgresql - 具有高共享读取的 postgreSQL 慢查询
- jhipster - jhipster-registry:spring cloud config conf with ssh throws 不是有效的私钥
- asp.net - .NET 5.0 React SPA 在 Debug 中工作,但在发行版中不工作
- rest - Wiremock 优先级与场景
- python - 需要绕过云耀斑安全
- .net-core - 如何在 dotnetcore 中兑换验证码和管理 JWT
- react-native - 使用 react-navigation 导航用户的错误测试功能
- postgresql - PostgreSQL 服务器没有监听