angular - npm 抛出此错误 '"**/node_modules/@angular/core/core"' has no export member 'ɵɵFactoryDef'
问题描述
我是 angular 新手,我正在尝试使用 highcharts 构建一个 palteform,但出现此错误:
node_modules/highcharts-angular/lib/highcharts-chart.component.d.ts(22,25) 中的错误:错误 TS2694:命名空间 '"C:/Users/HP/Desktop/PFE/Nouveau dossier 3/dashboard/node_modules/ @angular/core/core"' 没有导出成员 'ɵɵFactoryDef'。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 8 升级到 9 后出现的问题,可能的解决方案是删除你的node_modules
并npm install
再次运行。
原帖:https ://stackoverflow.com/a/59741546/12285185
如果这没有帮助,请在 stackblitz 等在线编辑器中重新创建您的配置,以便我可以检查它为什么不工作,或者可以做什么。
推荐阅读
- php - e型控制器laravel
- wolfram-mathematica - 在 Wolfram Mathematica 中,我应该如何高效方便地查询 Counts 运算的结果?
- java - REST API Jersey 2.0 NoSuchFieldError: INCLUDE_ALL
- hibernate - 如何使用 JPA 匹配表的列
- regex - 如何否定一个?(问题字符)golang regexp 中的字符
- xcode - Flutter stable 1.17.1 和 Xcode 11.5 问题
- python - 将 numpy 函数数组应用于元素数组
- android - 给定的工件包含一个带有包引用“android.support.v4”的字符串文字,无法安全地重写
- freemarker - Freemarker 模板中的空值
- r - 在 ggplot 中使用参数占位符