相关疑难解决方法(0)

将 Angular 从 8 升级到 10 后,我在 ts.updateIdentifier is not a function 中得到 ERROR

将 Angular 从 8 升级到 10 后,我得到了

 ERROR in ts.updateIdentifier is not a function
Run Code Online (Sandbox Code Playgroud)

这是我的

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
Run Code Online (Sandbox Code Playgroud)

我正在使用 yarn …

typescript angular

17
推荐指数
1
解决办法
5025
查看次数

无法读取未定义的属性(读取“kind”)

这些天我正在开发一个 Angular-CLI 项目。昨天,当我尝试在那里创建一个新模块时,终端给出了一个错误:

Cannot read properties of undefined (reading 'kind')
(只有这个错误没有任何其他解释)

然后我发现以同样的方式角度不允许制作新组件并给出相同的错误。但命令没有任何问题ng serve。它工作正常。

如果你能帮我解决这个问题,那将是一个很大的帮助。我将包含一些文件。但如果您想要更多详细信息,请在评论中提及它们,因为我不明白问题出在哪里。提前致谢

包.json

{
  "name": "chess-cabin-front",
  "version": "0.0.0",
  "scripts": {
    "android": "ns run android --no-hmr",
    "ios": "ns run ios --no-hmr",
    "mobile": "ns run",
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "~11.0.4",
    "@angular/cdk": "^11.2.5",
    "@angular/common": "~11.0.4",
    "@angular/compiler": "~11.0.4",
    "@angular/core": "~11.0.4",
    "@angular/forms": "~11.0.4",
    "@angular/localize": "~11.0.4",
    "@angular/material": "^11.2.5",
    "@angular/platform-browser": "~11.0.4",
    "@angular/platform-browser-dynamic": "~11.0.4",
    "@angular/router": …
Run Code Online (Sandbox Code Playgroud)

typescript angular-cli angular

12
推荐指数
2
解决办法
2万
查看次数

标签 统计

angular ×2

typescript ×2

angular-cli ×1