简体   繁体   English

未找到 Angular 导出

[英]Angular export not found

Hello I have updated my angular dependencys.您好,我已经更新了我的 angular 依赖项。 Now i get the following errors.现在我收到以下错误。

ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js 4409:15-24
"export 'ɵAPP_ROOT' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 3530:4-16
"export 'ɵLOCALE_DATA' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 3532:8-20
"export 'ɵLOCALE_DATA' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js 4218:23-38
"export 'ɵ_sanitizeStyle' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 7351:12-27
"export 'ɵlooseIdentical' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 4381:8-23
"export 'ɵɵallocHostVars' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 4382:8-17
"export 'ɵɵstyling' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 6167:8-17
"export 'ɵɵstyling' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 4386:8-22
"export 'ɵɵstylingApply' was not found in '@angular/core'
ERROR in D:/AffiliateShop/angular8-springboot-client/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 6171:8-22
"export 'ɵɵstylingApply' was not found in '@angular/core'
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

This is my Package.json这是我的 Package.json

{
  "name": "angular-wiegmann",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "~10.0.3",
    "@angular/cdk": "^9.0.1",
    "@angular/common": "~10.0.3",
    "@angular/compiler": "~10.0.3",
    "@angular/core": "~10.0.3",
    "@angular/forms": "~10.0.3",
    "@angular/localize": "~10.0.3",
    "@angular/material": "^10.0.1",
    "@angular/platform-browser": "~10.0.3",
    "@angular/platform-browser-dynamic": "~10.0.3",
    "@angular/router": "~10.0.3",
    "@fortawesome/fontawesome-free": "^5.13.1",
    "@fullcalendar/core": "^5.1.0",
    "@fullcalendar/daygrid": "^5.1.0",
    "@ng-bootstrap/ng-bootstrap": "^7.0.0",
    "@types/chart.js": "^2.9.22",
    "angular-bootstrap-md": "^9.3.1",
    "animate.css": "^4.1.0",
    "bootstrap": "^4.4.0",
    "chart.js": "^2.9.3",
    "font-awesome": "^4.7.0",
    "hammerjs": "^2.0.8",
    "mdbootstrap": "^4.19.1",
    "ng-material-multilevel-menu": "^4.12.2",
    "ng-quill": "^4.5.3",
    "primeicons": "^4.0.0",
    "primeng": "^9.1.3",
    "quill": "^1.3.7",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1000.1",
    "@angular/cli": "~10.0.1",
    "@angular/compiler-cli": "~10.0.3",
    "@types/node": "^14.0.20",
    "@types/jasmine": "~3.5.0",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "^6.0.0",
    "jasmine-core": "~3.5.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~5.0.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~3.3.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.10.2",
    "tslint": "~6.1.0",
    "typescript": "~3.9.6"
  }
}

What is the error that caused this problem.导致此问题的错误是什么。 It happens after I made a npm update of all components.它发生在我对所有组件进行 npm 更新之后。 I dont know what is the cause of this problem.I am using Angular 10 now and cdk 9. Now my app is not starting anymore.我不知道这个问题的原因是什么。我现在正在使用 Angular 10 和 cdk 9。现在我的应用程序不再启动了。

How did you update your dependencies?你是如何更新你的依赖的?

You'll need to do ng update @angular/core @angular/cli to update all the Angular core dependencies.您需要执行ng update @angular/core @angular/cli来更新所有 Angular 核心依赖项。

Also, I guess you are seeing the issue because there's a major version mismatch between @angular/cdk and @angular/material另外,我猜您看到了这个问题,因为@angular/cdk@angular/material之间存在主要版本不匹配

To avoid such scenarios, always leverage the angular schematics and perform:: ng update @angular/material为避免此类情况,请始终利用 angular 原理图并执行:: ng update @angular/material

ng update @angular/material will update both cdk and material ensuring compatibility. ng update @angular/material将更新cdkmaterial以确保兼容性。

Please follow the guidelines provided in Angular update guidelines page for more information.请遵循Angular 更新指南页面中提供的指南以获取更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Angular 4:“在'@ angular / animations'中找不到导出'AnimationBuilder' - Angular 4 : "export 'AnimationBuilder' was not found in '@angular/animations' “在'@ angular / core'中找不到导出'默认'(导入为'core_1') - "export 'default' (imported as 'core_1') was not found in '@angular/core' “在‘​​@angular/platform-b​​rowser’中找不到出口‘__platform_browser_private__’ - "export '__platform_browser_private__' was not found in '@angular/platform-browser' 角度材料:“在'./material/material.module'中找不到导出'MaterialComponents' - Angular Material: "export 'MaterialComponents' was not found in './material/material.module' 未找到导出错误 - 更新到 angular-10 后 - export was not found error - after updating to angular-10 在“rxjs”中找不到导出“分区” - export 'partition' was not found in 'rxjs' 未找到导出默认值 - Export default was not found 在“mdbvue”中找不到导出“mdbDatePicker” - Export "mdbDatePicker" was not found in "mdbvue" 未找到导出默认值; 模块导出不起作用 - export default was not found; module export not working 使用Angular在JavaScript中导出变量吗? - Export variables in JavaScript with Angular?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM