将Angular从8升级到10后,ts.updateIdentifier不是函数 [英] After Upgrading Angular from 8 to 10 I got ERROR in ts.updateIdentifier is not a function

查看:104
本文介绍了将Angular从8升级到10后,ts.updateIdentifier不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将Angular从8升级到10后我有

After Upgrading Angular from 8 to 10 I got

 ERROR in ts.updateIdentifier is not a function

这是我的

ng --version

ng --version

Angular CLI: 10.0.6
Node: 10.15.2
OS: win32 x64

Angular: 10.0.11
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: <error>

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.29
@angular-devkit/build-angular     0.803.29
@angular-devkit/build-optimizer   0.803.29
@angular-devkit/build-webpack     0.803.29
@angular-devkit/core              10.0.6
@angular-devkit/schematics        10.0.6
@angular/cdk                      10.1.3
@angular/cli                      10.0.6
@angular/fire                     5.4.2
@angular/http                     7.2.16
@ngtools/webpack                  8.3.29
@schematics/angular               10.0.6
@schematics/update                0.1000.6
rxjs                              6.6.2
typescript                        4.0.2
webpack                           4.39.2

我正在使用yarn,任何人都可以帮助我,我正在使用代码共享本机脚本

I am using yarn , could anyone help me , I am using code-sharing native script

推荐答案

我今天遇到了相同的错误.您应该将打字稿依赖项降级为3.9.7.这为我解决了.

I ran into the same error today. You should downgrade your typescript dependency to 3.9.7. That fixed it for me.

这篇关于将Angular从8升级到10后,ts.updateIdentifier不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆