构建应用程序时未找到Mutliple错误模块成角度

时间:2018-08-21 19:32:12

标签: angular npm node-modules

我有一个使用Visual Studio代码的Angular项目(如果重要的话,今天更新)。在更新之前,该应用程序正在运行,但在几个小时前尝试构建项目时,我在下面收到这些错误。

我已经删除了node_modules文件夹,并再次运行npm-install,但是我仍然遇到相同的错误。存在node_modules文件夹。

Errors

这是我的angular.json值:

"private": true, "dependencies": { "@angular/animations": "^6.0.3", "@angular/common": "^6.0.3", "@angular/compiler": "^6.0.3", "@angular/core": "^6.0.3", "@angular/forms": "^6.0.3", "@angular/http": "^6.0.3", "@angular/platform-browser": "^6.0.3", "@angular/platform-browser-dynamic": "^6.0.3", "@angular/router": "^6.0.3", "angularfire2": "^5.0.0-rc.11", "bootstrap": "^4.1.3", "core-js": "^2.5.4", "firebase": "^5.4.0", "firebase-admin": "^6.0.0", "lodash": "^4.17.10", "ngx-toastr": "^9.0.2", "node-modules": "^1.0.1", "rxjs": "^6.0.0", "toastr": "^2.1.4", "zone.js": "^0.8.26" }, "devDependencies": { "@angular-devkit/build-angular": "~0.6.8", "@angular/cli": "~6.0.8", "@angular/compiler-cli": "^6.0.3", "@angular/language-service": "^6.0.3", "@types/jasmine": "~2.8.6", "@types/jasminewd2": "~2.0.3", "@types/node": "~8.9.4", "codelyzer": "~4.2.1", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "^3.0.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.0", "karma-jasmine": "~1.1.1", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "^5.4.0", "ts-node": "~5.0.1", "tslint": "~5.9.1", "typescript": "~2.7.2" }

1 个答案:

答案 0 :(得分:0)

我找到了答案。看来这些错误是由于从错误的路径(在我的情况下是firebase-admin)中导入库引起的。