【问题标题】:Warnings on nx serve Application(Angular v12.0.0) on Nrwl NX Monorepo( v12.3.5)Nrwl NX Monorepo(v12.3.5)上的 nx 服务应用程序(Angular v12.0.0)上的警告
【发布时间】:2022-03-23 17:22:31
【问题描述】:

启动 Angular 12 应用程序 NX Monorepo 时出现 2 个警告。我确信在 NX Monorepo 12.3.4 上启动 Angular 12 应用程序时不会出现这些警告,因此它们出现在 NX Monorepo 12.3.5 中。

问题是我是否犯了一些错误,或者这是 NX 问题,或者我该如何解决?

Option "hmrWarning" is deprecated: No longer has an effect.
Option "servePathDefaultWarning" is deprecated: No longer has an effect.

package.json

{
  "name": "ui",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "nx",
    "postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main",
    "nx": "nx",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "nx workspace-lint && ng lint",
    "e2e": "ng e2e",
    "affected:apps": "nx affected:apps",
    "affected:libs": "nx affected:libs",
    "affected:build": "nx affected:build",
    "affected:e2e": "nx affected:e2e",
    "affected:test": "nx affected:test",
    "affected:lint": "nx affected:lint",
    "affected:dep-graph": "nx affected:dep-graph",
    "affected": "nx affected",
    "format": "nx format:write",
    "format:write": "nx format:write",
    "format:check": "nx format:check",
    "update": "nx migrate latest",
    "workspace-generator": "nx workspace-generator",
    "dep-graph": "nx dep-graph",
    "help": "nx help"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "12.0.0",
    "@angular/cdk": "^12.0.2",
    "@angular/common": "12.0.0",
    "@angular/compiler": "12.0.0",
    "@angular/core": "12.0.0",
    "@angular/flex-layout": "^12.0.0-beta.34",
    "@angular/forms": "12.0.0",
    "@angular/material": "^12.0.2",
    "@angular/platform-browser": "12.0.0",
    "@angular/platform-browser-dynamic": "12.0.0",
    "@angular/router": "12.0.0",
    "@nestjs/common": "^7.0.0",
    "@nestjs/core": "^7.0.0",
    "@nestjs/platform-express": "^7.0.0",
    "@nrwl/angular": "12.3.5",
    "reflect-metadata": "^0.1.13",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "12.0.0",
    "@angular-eslint/eslint-plugin": "~12.0.0",
    "@angular-eslint/eslint-plugin-template": "~12.0.0",
    "@angular-eslint/template-parser": "~12.0.0",
    "@angular/cli": "12.0.0",
    "@angular/compiler-cli": "12.0.0",
    "@angular/language-service": "12.0.0",
    "@nestjs/schematics": "^7.0.0",
    "@nestjs/testing": "^7.0.0",
    "@nrwl/cli": "12.3.5",
    "@nrwl/cypress": "12.3.5",
    "@nrwl/eslint-plugin-nx": "12.3.5",
    "@nrwl/jest": "12.3.5",
    "@nrwl/linter": "12.3.5",
    "@nrwl/nest": "12.3.5",
    "@nrwl/node": "12.3.5",
    "@nrwl/tao": "12.3.5",
    "@nrwl/workspace": "12.3.5",
    "@types/jest": "26.0.8",
    "@types/node": "14.14.33",
    "@typescript-eslint/eslint-plugin": "4.19.0",
    "@typescript-eslint/parser": "4.19.0",
    "cypress": "^7.3.0",
    "dotenv": "8.2.0",
    "eslint": "7.22.0",
    "eslint-config-prettier": "8.1.0",
    "eslint-plugin-cypress": "^2.10.3",
    "jest": "26.2.2",
    "jest-preset-angular": "8.4.0",
    "prettier": "2.2.1",
    "ts-jest": "26.5.5",
    "ts-node": "~9.1.1",
    "typescript": "~4.2.4"
  }
}

【问题讨论】:

    标签: angular nrwl-nx nrwl


    【解决方案1】:

    关于Option "hmrWarning" is deprecated: No longer has an effect.,您可以检查angular.json 文件是否具有hmrWarning 属性。

    【讨论】:

      猜你喜欢
      • 2021-08-22
      • 2018-05-11
      • 2019-07-20
      • 2020-08-29
      • 2019-01-07
      • 2020-08-21
      • 2021-12-27
      • 2019-01-05
      • 2020-02-19
      相关资源
      最近更新 更多