基于此Guide升级我的复杂项目后
当我构建我的库时,我得到了这个错误:
Building Angular Package
------------------------------------------------------------------------------
Building entry point 'my-library'
------------------------------------------------------------------------------
Compiling TypeScript sources through ngc
ERROR: this.typeChecker.getTypeArguments is not a function
An unhandled exception occurred: this.typeChecker.getTypeArguments is not a function
See "XXXXXX\angular-errors.log" for further details.
我全局更新Node.js、Typescript和Ancular.Cli
所有步骤都已成功完成。
我应该单独升级我的库吗?
更新:
为了进行构建,我在ng-packagr": "^5.4.0
包中使用了ng build my-library-name
命令
所有的库都在一个项目中,项目通过ng更新进行升级
节点版本: 12.14.1,Typescript版本: 3.4.5
https://stackoverflow.com/questions/59732185
复制