我最近计划从angular 9升级到11, 在我的桌面上工作得很好。当我将项目从repo拉到我的笔记本电脑上(它与版本9一起使用)时,当我试图编译时,我总是得到下面的错误。我将全局Angular CLI更新为11.2.11 (项目位于11.2.2),并将Typescript更新为4.1.5。这是错误: Your global Angular CLI version (11.2.11) is greater than your local version (11.2.2).nine-gol
嗨,有没有关于如何预防的想法16:41 error Avoid referencingunbound methods which may cause unintentional scoping of `this` @typescript-eslint/unbound-method16:62 error Avoid referencing unbound methods which may cause
我将我的angular和我的angular项目版本更新为angular 7。但是...当我尝试运行时,我遇到了这个问题:
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript如果可能,请安装angular/编译器-cli支持的typescript 3.2.2版本
在上一次升级到Angular 6之后,出现了一个有趣的警告:Error during template compile of ‘moduleName’.可以肯定的是,这与此有关:Error: The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 but 2.8.3 was found insteadAngular 5与TS 2.8.3一起工作得很好,并且没有任何描述的问题。
有人能解释一下如何修复这个问题吗?为什么你会发布与最新TS不兼容的新版本