小编Dam*_*ika的帖子

安装 ng add @ng-bootstrap/ng-bootstrap 时出错

将 ng-bootstrap 安装到我的 Angular-CLI(11.0.4) 时出现错误。什么时候

ng add @ng-bootstrap/ng-bootstrap 
Run Code Online (Sandbox Code Playgroud)

还有我的日志文件

[error] Error: npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: front@0.0.0
npm ERR! Found: @angular/compiler@11.0.9
npm ERR! node_modules/@angular/compiler
npm ERR!   @angular/compiler@"~11.0.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler@"11.1.1" from @angular/localize@11.1.1
npm ERR! node_modules/@angular/localize
npm ERR!   peer @angular/localize@"^11.0.0" from @ng-bootstrap/ng-bootstrap@9.0.2
npm ERR!   node_modules/@ng-bootstrap/ng-bootstrap
npm ERR!     @ng-bootstrap/ng-bootstrap@"*" from the root project
npm ERR! 
npm …
Run Code Online (Sandbox Code Playgroud)

terminal npm angular-cli ng-bootstrap angular

21
推荐指数
4
解决办法
4万
查看次数

无法读取未定义的属性(读取“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

angular-cli ×2

ng-bootstrap ×1

npm ×1

terminal ×1

typescript ×1