由于正常组件错误,我无法部署应用程序,到目前为止它显示确定以及选项,但每当我尝试部署时都会出现此消息。
注意:根据一些研究,我发现这个消息出现在一些模块中,这是因为打字稿版本。
你知道如何在没有错误的情况下加入它吗?
我按照规范使用它:
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"
}
}
答案 0 :(得分:0)
在您的package.json中查找,我看不到angular2-justgage或其依赖关系,例如justgage和raphael。您的问题可能在于该部门希望对您仍然有用