我正在使用@ angular / fire版本5.1.1以及@ firebase / app版本0.3.5
在ng serve
上,出现以下错误:
模块C:/Users/User1/Desktop/Projects/cbms/node_modules/@angular/fire/index.d.ts的元数据版本不匹配,发现版本4,预期为3,在C:/中解析符号AppModule Users / User1 / Desktop / Project / src / app / app.module.ts,在C:/Users/User1/Desktop/Project/src/app/app.module.ts中解析符号AppModule,在C:/中,解析符号AppModule用户/用户1 /桌面/项目/src/app/app.module.ts
我想提到该项目在本地运行。当我尝试ng build
时遇到错误,项目崩溃了。
这是我的package.json
文件:
{
"name": "cbms",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.2.6",
"@angular/cdk": "^5.0.4",
"@angular/cli": "1.0.4",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/fire": "^5.1.1",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/material": "^5.0.4",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"@firebase/app": "^0.3.5",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5",
"@swimlane/ngx-datatable": "^11.1.7",
"@types/googlemaps": "^3.26.16",
"angular2-color-picker": "^1.3.1",
"angular2-google-maps": "^0.17.0",
"angular2-image-upload": "^1.0.0-rc.0",
"angular2-moment": "^1.8.0",
"bootstrap": "^4.0.0-beta",
"core-js": "^2.4.1",
"firebase": "^5.6.0",
"font-awesome": "^4.7.0",
"ng2-color-picker": "^1.3.2",
"ng2-dnd": "^4.2.0",
"ng2-google-place-autocomplete": "^1.4.2",
"ng2-table": "^1.3.2",
"ng2-tag-input": "^1.4.1",
"ng2-truncate": "^1.3.7",
"ngx-chips": "^1.4.5",
"ngx-color-picker": "^4.1.0",
"normalize.css": "^7.0.0",
"resolve-url-loader": "^2.1.0",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"tether": "^1.4.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@types/jasmine": "2.5.38",
"@types/node": "~6.0.60",
"bootstrap": "^4.0.0-beta",
"bootstrap-loader": "^2.1.0",
"codelyzer": "~2.0.0",
"jasmine-core": "~2.5.2",
"jasmine-spec-reporter": "~3.2.0",
"jquery": "^3.2.1",
"karma": "~1.4.1",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.0",
"tether": "^1.4.0",
"ts-node": "~2.0.0",
"tslint": "~4.5.0",
"typescript": "^2.7.0-dev.20180111"
}
}