美文网首页
Data path "" should NOT have add

Data path "" should NOT have add

作者: BUTIMHERE | 来源:发表于2021-02-25 14:53 被阅读0次

在Ionic 項目中,將Angular更新至最新後,執行會報此錯誤:Data path "" should NOT have additional properties(es5BrowserSupport).
at @angular-devkit
這時候在檢查angular.json 文件時會發現,在architect下的assets目錄下有一個屬性es5BrowserSupport:

   "architect": {
    "build": {
      "builder": "@angular-devkit/build-angular:browser",
      "options": {
        "outputPath": "www",
        "index": "src/index.html",
        "main": "src/main.ts",
        "polyfills": "src/polyfills.ts",
        "tsConfig": "src/tsconfig.app.json",
        "assets": [
          {
            "glob": "**/*",
            "input": "src/assets",
            "output": "assets"
          },
          {
            "glob": "**/*.svg",
            "input": "node_modules/ionicons/dist/ionicons/svg",
            "output": "./svg"
          }
        ],
        "styles": [
          {
            "input": "src/theme/variables.scss"
          },
          {
            "input": "src/global.scss"
          }
        ],
        "scripts": [],
        "es5BrowserSupport":true
      },

將其中的es5BrowserSupport 這個屬性拿掉就好了

相关文章

网友评论

      本文标题:Data path "" should NOT have add

      本文链接:https://www.haomeiwen.com/subject/faimfltx.html