与Neovis.js集成的Angular模板需要20分钟的编译时间

时间:2018-10-19 07:43:06

标签: angular neo4j angular-cli

有人可以帮助我吗? 我正在使用Neo4j应用程序来构建并将其集成到angular和nodejs应用程序。 我正在使用Core UI-角度模板。它在3分钟内完成。 (或任何其他模板)。但是,当我包含Neo4j应用程序库Neovis.js时,大约需要20分钟的时间进行编译。

我用过-

 ng build --watch

我收到类似-

的错误
 ERROR in /home/dell/Neo4j-5/src/assets/neovis.js 
(36620,54): Property 'hierarchical_sort_method' does not exist on type 
'object'.

ERROR in /home/dell/Neo4j-5/src/assets/neovis.js 
(36647,118): Property 'values' does not exist on type 
'ObjectConstructor'.

ERROR in /home/dell/Neo4j-5/src/assets/neovis.js 
(36648,118): Property 'values' does not exist on type 
'ObjectConstructor'.

 ERROR in /home/dell/Neo4j-5/src/assets/neovis.js (35241,17297): 
 Property 'parse' does not exist on type '() => void'.

 ERROR in /home/dell/Neo4j-5/src/assets/neovis.js (35241,17388): 
 Property 'check' does not exist on type '() => void'.

 ERROR in /home/dell/Neo4j-5/src/assets/neovis.js (35241,17478): 
 Property 'getSuggestion' does not exist on type '() => void'.

当我不使用CoreUI或任何其他Akveo模板时,谁不会来。

.angular-cli.json

{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
    "version": "1.0.0-alpha.6",
    "name": "coreui-angular"
  },
   "apps": [
    {
        "root": "src",
        "outDir": "dist",
        "assets": [
            "assets"
        ],
        "index": "index.html",
        "main": "main.ts",
        "polyfills": "polyfills.ts",
        "test": "test.ts",
        "tsconfig": "tsconfig.app.json",
        "testTsconfig": "tsconfig.spec.json",
        "prefix": "app",
        "styles": [
            "scss/style.scss"
        ],
        "scripts": [
            "../node_modules/chart.js/dist/Chart.bundle.min.js",
            "../node_modules/chart.js/dist/Chart.min.js"
        ],
        "environmentSource": "environments/environment.ts",
        "environments": {
            "dev": "environments/environment.ts",
            "prod": "environments/environment.prod.ts"
        }
    }
  ],
    "e2e": {
    "protractor": {
        "config": "./protractor.conf.js"
    }
    },
    "lint": [
    {
        "project": "src/tsconfig.app.json"
    },
    {
        "project": "src/tsconfig.spec.json"
    },
    {
        "project": "e2e/tsconfig.e2e.json"
    }
   ],
   "test": {
    "karma": {
        "config": "./karma.conf.js"
    }
   },
   "defaults": {
    "styleExt": "scss",
    "prefixInterfaces": false,
    "serve": {
        "port": 4200,
        "host": "localhost"
    }
    }
  }

请帮助。

1 个答案:

答案 0 :(得分:1)

更改模板。或使用命令-

 ng serve --aot=true

但是大多数情况下,此命令需要angular6 cli-尽管不确定。