0

由于 justgage 组件错误,我无法部署应用程序,到目前为止,它与选项一起显示正常,但是每当我尝试部署时都会出现此消息。

注意:根据一些研究,我发现此消息与某些模块一起出现,这是因为打字稿版本。

你知道如何在没有错误的情况下包含它吗?

我根据规格使用它:

1 我安装组件:

npm install angular2-justgage

然后我将它作为一个模块包含在内:

import { JustgageModule } from 'angular2-justgage';

@NgModule({
  imports: [ JustgageModule ]
  // ... I have additional modules
})
    export class AppModule {
      options = {
      min: 0,
      title: 'Visitors'
};

在模板中,我将组件包括适当的选择器:

<justgage [options]="options" [max]="max" [value]="value"></justgage>

这是 package.json

{
  "name": "crowd-lending",
  "version": "0.0.0",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "test": "ng test",
    "pree2e": "webdriver-manager update --standalone false --gecko false",
    "e2e": "protractor"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^2.3.1",
    "@angular/compiler": "^2.3.1",
    "@angular/core": "^2.3.1",
    "@angular/forms": "^2.3.1",
    "@angular/http": "^2.3.1",
    "@angular/platform-browser": "^2.3.1",
    "@angular/platform-browser-dynamic": "^2.3.1",
    "@angular/router": "^3.3.1",
    "@types/lodash": "^4.14.55",
    "angular2-datatable": "^0.5.3",
    "angular2-fullcalendar": "^1.1.1",
    "angular2-notifications": "^0.4.53",
    "chart.js": "^2.5.0",
    "core-js": "^2.4.1",
    "ng2-bootstrap": "^1.4.0",
    "ng2-charts": "^1.5.0",
    "ng2-select": "^1.2.0",
    "primeng": "^2.0.3",
    "rxjs": "^5.0.1",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.7.2"
  },
  "devDependencies": {
    "@angular/compiler-cli": "^2.3.1",
    "@types/jasmine": "2.5.38",
    "@types/node": "^6.0.42",
    "angular-cli": "1.0.0-beta.28.3",
    "codelyzer": "~2.0.0-beta.1",
    "jasmine-core": "2.5.2",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.2.1",
    "protractor": "~4.0.13",
    "ts-node": "1.2.1",
    "tslint": "^4.3.0",
    "typescript": "~2.0.3"
  }
}
4

1 回答 1

0

查看您的 package.json 我看不到 angular2-justgage 或它的依赖项,例如 justgage 和 raphael。您的问题可能出在那个部门希望这仍然与您相关

于 2019-05-21T09:20:04.407 回答