【问题标题】:npm throws this error '"**/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'npm 抛出此错误 '"**/node_modules/@angular/core/core"' has no export member 'ɵɵFactoryDe​​f'
【发布时间】:2020-06-15 13:44:49
【问题描述】:

我是 Angular 新手,我正在尝试使用 highcharts 构建一个模板,但出现此错误:

node_modules/highcharts-angular/lib/highcharts-chart.component.d.ts(22,25) 中的错误:错误 TS2694: Namespace '"C:/Users/HP/Desktop/PFE/Nouveau dossier 3/dashboard /node_modules/@angular/core/core"' 没有导出成员 'ɵɵFactoryDe​​f'。 node_modules/highcharts-angular/lib/highcharts-chart.component.d.ts(23,18):错误 TS2314:通用类型 'ɵɵComponentDefWithMeta' 需要 6 个类型参数。

** Angular Live Development Server 正在监听 localhost:4200,在 http://localhost:4200/ 上打开您的浏览器 ** i 「wdm」: 编译失败。

【问题讨论】:

    标签: angular highcharts


    【解决方案1】:

    好像是从 angular 8 升级到 9 后出现的问题,可能的解决方案是删除您的 node_modules 并再次运行 npm install

    原帖:https://stackoverflow.com/a/59741546/12285185

    如果这没有帮助,请在在线编辑器(如 stackblitz)中重新创建您的配置,以便我检查它为什么不工作,或者可以做些什么。

    【讨论】:

      猜你喜欢
      • 2018-10-18
      • 2022-01-18
      • 1970-01-01
      • 2022-06-21
      • 2022-10-22
      • 1970-01-01
      • 2017-12-22
      • 2019-02-02
      • 2020-09-22
      相关资源
      最近更新 更多