开发者

Failed to initialize Angular compilation - The target entry-point "@angular/http" has missing dependencies: - rxjs/Observable

开发者 https://www.devze.com 2022-12-07 19:04 出处:网络
i got these errors after deleting and install nodemodules. i think there a miss match of the project angular version and my cli version.

i got these errors after deleting and install nodemodules. i think there a miss match of the project angular version and my cli version.

./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Emit

./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Emit

Error: Failed to initialize Angular compilation - The target entry-point "@angular/http" has missing dependencies:

  • rxjs/Observable

here is what my pacakage.json looks like this.

`{
  "name": "admindashboard",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^14.0.0",
    "@angular/common": "^14.2.12",
    "@angular/compiler": "^14.0.0",
    "@angular/core": "^14.0.0",
    "@angular/forms": "^14.0.0",
    "@angular/platform-browser": "^14.0.0",
    "@angular/platform-browser-dynamic": "^14.0.0",
    "@angular/router": "^14.0.0",
    "@auth0/angular-jwt": "^5.1.0",
    "@types/jwt-decode": "^3.1.0",
    "angular2-jwt": "^0.2.3",
    "bootstrap": "^5.2.3",
    "crypto-js": "^4.1.1",
    "datatables.net": "^1.13.1",
    "datatables.net-buttons": "^2.3.3",
    "datatables.net-buttons-dt": "^2.3.3",
    "datatables.net-dt": "^1.13.1",
    "jquery": "^3.6.1",
    "jszip": "^3.10.1",
    "jwt-decode": "^3.1.2",
    "ngx-bootstrap": "^9.0.0",
    "rxjs": "~7.5.0",
    "rxjs-compat": "^6.6.7",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^14.0.3",
    "@angular/cli": "^15.0.2",
    "@angular/compiler-cli": "^14.0.0",
    "@types/crypto-js": "^4.1.1",
    "@types/datatables.net": "^1.10.24",
    "@types/datatables.net-buttons": "^1.4.7",
    "@types/jasmine": "~4.0.0",
    "@types/jquery": "^3.5.14",
    "jasmine-core": "~4.1.0",
    "karma": "~6.3.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.0.0",
    "karma-jasmine-htm开发者_Go百科l-reporter": "~1.7.0",
    "typescript": "~4.7.2"
  
    
  },
  "overrides": {
    "autoprefixer": "10.4.5"
  }
}
`
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号